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

Of course, a label! That explains it, thanks! I didn't have a JS reference handy at the time (and couldn't find it in the Mozilla ref in the short amount of time I had).

I have actually used labels in JS before, which resulted in a lot of questions from my colleagues.

I think the loop: for(...){break loop;} thing is acceptable (if for can not be avoided anyway).



Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: