Variables don't have to be declared before being used : Variables : Language Basics JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Language Basics » Variables »

 

Variables don't have to be declared before being used







When the JavaScript sees a declared identifier (var varName), it creates a global variable.








var sTest = "hello ";
sTest2 = sTest + "world";
alert(sTest2);







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Language Basics
» Variables