DEV Community

Discussion on: Did you know that JavaScript has had labels since ES3?!?

Collapse
 
stegriff profile image
Ste Griffiths

When I first started programming as a kid (c. 2004) I loved BASIC, so I took every opportunity to look for BASIC compilers and interpreters on every platform I had. As a number of other commenters have implied, this is the only way of simulating BASIC's GOTO statements, so I had a relatively early exposure to this feature! Having said that, I have never used it in JavaScript (and now write much better code than in my childhood :')