Variable:
Variable is nothing which can hold a value.Variables in Java Script can be of type:
1)Number->It can be a integer or real numbers both are just numbers.–>12,12.345
2)String–>”abc”
3)boolean–>true or false
4)Null–>null.
Conditions to specify variable:
–>Variable name starts with lower case letters or upper case letters or Underscore.
–>Variable name should not start with a number.
–>variable name case-sensitive.
–>Length of the variable name is not limited.
Variable name is called “Identifier”
–>we can declare the variables any where.
Declaring the variable:
var variablename=value
Example to know about Variables.
Output:

