What messages will display the following code:
 alert("1"); js: { alert("2"); break js; alert("3"); } alert("4"); 
Explanation
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 }

Следи за CodeGalaxy

Мобильное приложение Beta

Get it on Google Play
Обратная Связь
Cosmo
Зарегистрируйся сейчас
или Подпишись на будущие тесты