3 ms·
Funny script, though I can't help but point out a flaw: it doesn't play well with unbracketed conditionals. For example: if (num > 5) goto foo; will not b
by md224 9y ago
Funny script, though I can't help but point out a flaw: it doesn't play well with unbracketed conditionals. For example:
if (num > 5) goto foo;
will not behave as expected, because "goto foo;" is replaced by two separate statements, the second of which is outside the scope of the conditional and will always be called. Maybe they could fix this by tying the statements together with a comma instead of separating with semicolons? (EDIT: I don't think a comma will work, but adding brackets around the two statements should do the trick. JS doesn't seem to mind redundant blocks.)
Still funny though.