While JavaScript doesn't have goto, the closest thing it does have are 'labels'. You can give a statement a name, then later use break inside that at any point to break out of it. They call it a 'loop jump' and it's part of JavaScript that nobody really uses: developer.mozilla.org/en/docs/Web/JavaScript/Refe…