3 ms·
"Synchronous I/O Considered Harmful" or "I once considered teaching JavaScript as a first language, but then I found out it has no GOTO statements"
by ZenPsycho 15y ago
"Synchronous I/O Considered Harmful"
or
"I once considered teaching JavaScript as a first language, but then I found out it has no GOTO statements"
- tantalor 15y agoIt may not have GOTO statements, but JavaScript (ECMA-262 Ed. 3) does have its cousin, label-breaks, foo: if (1) { break foo; console.log("nope"); } console.log("yep"); https://developer.mozilla.org/en/JavaScript/Reference/Statements/break https://developer.mozilla.org/en/JavaScript/Reference/Statem...