JavaScript: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 191:
var x; // defines the variable x and assigns to it the special value "undefined" (not to be confused with an undefined value)
var y = 2; // defines the variable y and assigns to it the value 2
var z = "Hello, World!"; // defines the variable z and assigns to it a string entitledcontaining "Hello, World!"
</syntaxhighlight>