CHAPTER - 5

WHAT IS VARIABLE?

A variable's purpose is to store information so that it can be used later. A variable is a symbolic name that represents some data that you set JavaScript variables can be used to hold values. (x=5) or expressions (z=x+y)

var a=30;

a=50;


Variable names must begin with a letter
Variable names can also begin with $ and _ (but we will not use it)
Variable names are case sensitive (y and Y are different variables)


Comments

Popular posts from this blog

CHAPTER - 14

CHAPTER - 18