Lexical Structure of Javascript

Optional Semicolons

There are two exceptions to the general rule that JavaScript interprets line breaks as semicolons when it cannot parse the second line as a continuation of the statement on the first line.
The first exception involves the return, break, and continue statements The second exception involves the ++ and −− operators

Similar Stories


learnJavascriptBasicsFirst

Lexical Structure of Javascript

Lexical Structure of Javascript Optional Semicolons There are two exceptions to the general rule that JavaScript interprets line breaks as semicolons when it... Read More

learnJavascriptBasicsFirst

Intro to Javascript

Introduction to Javascript (My Understanding from different reads) Types It all starts with Data Types and following are them to start with. Declarations:... Read More

BabyStepsinTechnology

My Baby steps with Technology

My First Experiment with Computers. preparing a Lab Manual I used IIT-BHU Library Computers which have Ubuntu OS, Which has proxy with username... Read More