Variables can hold different types of values at different times : Variables : Language Basics JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Language Basics » Variables »

 

Variables can hold different types of values at different times







A variable can be initialized with a string value, and later on be set to a number value.








var test = "hi";
alert(test);
test = 55;
alert(test);







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Language Basics
» Variables