JavaScript syntax: Difference between revisions

Content deleted Content added
Changing short description from "Rule set defining a correctly structured JavaScript program" to "Set of rules defining correctly structured programs" (Shortdesc helper)
m you put spaces around the equals sign
Tags: Mobile edit Mobile app edit iOS app edit
Line 23:
 
<syntaxhighlight lang="javascript">
var a = 5;
console.log(a); // 5
console.log(A); // throws a ReferenceError: A is not defined