What are the rules for JavaScript’s automatic semicolon insertion (ASI)?
First of all you should know which statements are affected by the automatic semicolon insertion (also known as ASI for brevity): empty statement var statement expression statement do-while statement continue statement break statement return statement throw statement The concrete rules of ASI, are described in the specification ยง11.9.1 Rules of Automatic Semicolon Insertion Three cases … Read more