JS Coding Questions Logo
JS Coding Questions
#461💼 Interview

Give an example of statements affected by automatic semicolon insertion?

Advertisement

728x90

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

Advertisement

Responsive Ad
🎯 Practice NowRelated Challenge

JavaScript Coding Exercise 33

Test your knowledge with this interactive coding challenge.

Start Coding

Advertisement

728x90
461of476
Give an example of statements affected by automatic semicolon insertion? | JSCodingQuestions.com