Creating a Numeric Variable
ways,and it is important to understand a few fundamental data types. One such data type is a number.
But the following are not valid text strings:
In the first case,the quotes make the value a text string,and in the second,the letters mean this is not a valid numeric value.
You use these numbers in different contexts —for instance,as arguments to a function or method:
You also use them as values assigned to variables:
var aVar = 375;