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 :')
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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 :')