The variables can be used to hold the values
(or) expressions.
The variable names must begin with an alphabetic
or underscore(_)
Ex:
var
x;
var y=10;
var
name=”rajendra”;
var
z=x+y;
·
The name of the variable can be short(or)
descriptive, there is no restriction on the length of the name.
·
Whenever we store string values into the
variables they must be enclosed in”” (double quodes)
No comments:
Post a Comment