How’s it going, I'm a Adam, a Full-Stack Engineer, actively searching for work. I'm all about JavaScript. And Frontend but don't let that fool you - I've also got some serious Backend skills.
Location
City of Bath, UK 🇬🇧
Education
10 plus years* active enterprise development experience and a Fine art degree 🎨
How’s it going, I'm a Adam, a Full-Stack Engineer, actively searching for work. I'm all about JavaScript. And Frontend but don't let that fool you - I've also got some serious Backend skills.
Location
City of Bath, UK 🇬🇧
Education
10 plus years* active enterprise development experience and a Fine art degree 🎨
You can label a code block too !
That's the spirit, take the wierd to the next level.
Does have the effect of early return without a function?
I think labels are just so out of place in js, cool as they are, they are not defined like variables and are more meta.
Saves writing an IFFE. Im certain this would be a touch faster then an IFFE (but it costs in reasoning about)
Interesting I doubt a nested labeled code block would work, for fun reasons. Perhaps if it where encapsulated ()
wow,So I just discovered that label exists in JS!
It seems that this give you a thinner control on loop breaking ! an example here