What messages will display the following code:
 alert("1"); js: { alert("2"); break js; alert("3"); } alert("4"); 
With a label reference, the break statement can be used to jump out of any code block, that means code in { }. Our example of code: js: { ..some code break js; // label js }

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Sign Up Now
or Subscribe for future quizzes