FrontendDeveloper.in

JavaScript question detail

Give an example of statements affected by automatic semicolon insertion?

The javascript parser will automatically add a semicolon while parsing the source code. For example, the below common statements affected by Automatic Semicolon Insertion(ASI).

  1. An empty statement
  2. var statement
  3. An expression statement
  4. do-while statement
  5. continue statement
  6. break statement
  7. return statement
  8. throw statement
Back to all JavaScript questions
Get LinkedIn Premium at Rs 399