Ultimately, all you need are labels and conditional jumps... Does JavaScript have goto?

@vaporeon_ after a little searching someone in 2009 made a preprocessor for the language that adds goto but the library can only be found in an internet archive page and the internet archive is currently down

@wallhackio I think the one time I had to use JavaScript, I found out that my specific use-case for goto in that particular program could be done with something called... Labelled branch? Labelled break? Something like that. Do you know what I'm talking about and what it's actually called?

@vaporeon_ I was not aware of this feature!

Apparently you can create "labelled statements" for anything considered a "statement", for which I believe include for, while, switch, and if/else if/else

Sign in to participate in the conversation
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.