Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
freecodeio
· 1mo ago · 0 comments
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
Comments
[–]
ericwood
1mo ago
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...
[–]
freecodeio
OP
1mo ago
I mean everyone should know labels if you have to break inside a nested loops. At least I hope so cause then that code has some bad bugs in it.