Shortly after making this video I realised that they are technically not "labelled blocks" but instead just "labels" that you place before a for loop. Sorry about that. Learn more here: developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/label
You can also label blocks, but I'm pretty sure you rarely see it and it serves little to no purpose. Check out that MDN document I posted in the description
Shortly after making this video I realised that they are technically not "labelled blocks" but instead just "labels" that you place before a for loop. Sorry about that.
Learn more here:
developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/label
Super nice! :D
What is a label in this case? Is it specific to for loops or it can be used for something else as well?
You can also label blocks, but I'm pretty sure you rarely see it and it serves little to no purpose. Check out that MDN document I posted in the description
nice thanks I was wondering what was happening in my nested break attemps lol
No worries mate
Clear explanation, thanks.
Thank you so mutch
if suppose after break outerloop, again i need to starts from let x = 1. what should i do??
Jesus Christ can you go any faster you’re going to slow /s