What is the best way to break from nested loops in JavaScript?
Answers
Answered by
0
When the break statement is used with a switch statement, it breaks out of the switch block. This will stop the execution of more execution of code and/or case testing inside the block. When the break statement is used in a loop, it breaks the loop and continues executing the code after the loop (if any)
Similar questions
Math,
7 months ago
Chemistry,
7 months ago
Political Science,
1 year ago
Social Sciences,
1 year ago
Social Sciences,
1 year ago