Y
Hacker News
new
|
ask
|
show
|
jobs
by
freecodeio
31 days ago
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
1 comments
ericwood
31 days 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...
link
freecodeio
31 days 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.
link