February 2018
Intermediate to advanced
298 pages
8h 22m
English
The ECMAScript Language specification (http://www.ecma-international.org/ecma-262/5.1/#sec-7.9) states that:
But the spec also says:
Therefore, the specification states that JavaScript is able to handle automatic semicolon insertion by its own judgment. However, it is extremely error-prone in some cases and not intuitive at all.
Consider this example:
var a = 1 var b = 2 var c = 3
JavaScript automatically inserts semicolon to make code look like:
var a = 1;var b
Read now
Unlock full access