Wednesday, October 8, 2014

13th Week on ICT Class

August 25-August 29



On the thirteenth week, we've studied about the JavaScript Variables. 

JavaScript variables are "containers" for storing data values.


JavaScript Data Types

JavaScript variables can hold many types of data, like text values (person = "John Doe").
In JavaScript texts are called strings or text strings.
JavaScript can handle many types of data, but for now, just think of numbers and strings.
When you assign a string value to a variable, you put double or single quotes around the value.
When you assign a numeric value to a variable, you do not put quotes around the value.
If you put quotes around a numeric value, it will be treated as a text string.


©http://www.w3schools.com/js/js_variables.asp

No comments:

Post a Comment