logoalt Hacker News

freecodeio • today at 12:23 PM • 1 reply • view on HN

just because a keyword makes shitty devs shoot themselves in the foot, you shouldn't remove the keyword

I'm still sour why goto doesn't exist in javascript


Replies

ericwood • today at 1:32 PM

It's limited to looping but there is a shockingly similar concept in the label statement that few seem to know about (for good reason): https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

➕ show 1 reply