Report Bug
Qus : Which of the following is true about the break and continue statements in JavaScript?
Qusजावास्क्रिप्ट में ब्रेक और कंटीन्यू स्टेटमेंट के बारे में निम्नलिखित में से कौन सा सत्य है?

A. break statement stops the loop, and continue skips the current iteration
B. continue statement stops the loop, and break skips the current iteration
C. Both break and continue stop the loop
D. Both break and continue skip the current iteration


Solution
A. break statement stops the loop, and continue skips the current iteration



Explanation
The break statement terminates the loop entirely, while continue skips the current iteration and moves to the next.



Report Bug