A

Admin • 828.03K Points
Coach

Q. What does the break statement do in a loop?

  • (A) Exits the loop
  • (B) Skips the current iteration
  • (C) Repeats the loop
  • (D) Stops execution of script
  • Correct Answer - Option(A)
  • Views: 6
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin
break immediately exits the nearest enclosing loop or switch.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.