Vidyalelo
JavaScript · Q36

Basic And Variables

Programming · JavaScript · question 36

Q36

When an empty statement is encountered, a JavaScript interpreter

A.
Ignores the statement
Answer
B.
Prompts to complete the statement
C.
Throws an error
D.
Throws an exception

Answer: Option A

Solution

Answer: Option A
Solution:
The JavaScript interpreter takes no action when it executes an empty statement. The empty statement is occasionally useful when you want to create a loop that has an empty body.