DEV Community

Discussion on: Semi colons;

Collapse
 
fnh profile image
Fabian Holzer • Edited

Where exactly in the ECMAScript specification does it say that semi colons are omitted/required or not?

Here:
ECMAScript 2019 Language Specification, Section 11.9.

Most ECMAScript statements and declarations must be terminated with a semicolon. Such semicolons may always appear explicitly in the source text. For convenience, however, such semicolons may be omitted from the source text in certain situations. These situations are described by saying that semicolons are automatically inserted into the source code token stream in those situations.