Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> extending JS syntax so it has simulated goto for example

JavaScript has goto, it's the `continue` statement[1].

1: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...



That's not a real goto. You can only use a label for breaking out of outer loops. Useful for that, but not for other kinds of control flow control.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: