You have already completed these exercises!
Do you want to take them again?
You completed the JS Break and Continue Exercises from W3Schools.com
Share on:
Consider the following code:const fruits = ['Apple', 'Banana', 'Cherry'];let x = '';myfavorite: { x = fruits[0]; break myfavorite; x = fruits[1]; x = fruits[2];}alert(x);What will be the alerted result?
const fruits = ['Apple', 'Banana', 'Cherry'];let x = '';myfavorite: { x = fruits[0]; break myfavorite; x = fruits[1]; x = fruits[2];}alert(x);