Which JavaScript statement is used to exit a loop?
-
A
continue
-
B
break
Correct answer
-
C
stop
-
D
exit
13 views
Explanation
break exits the loop immediately. Source: Standard JavaScript content (FBISE-aligned).
Reference
Asked in: Matric,FBISE
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ