5 ms·
" 10 A = 1 20 A = A + 1 30 PRINT_NON_BLOCKING "HELLO" + "A", when done callback { LINE 40 } 40 PRINT "YES" 50 GOTO 20 A common quiz for Javascript is to
by qualitytime 9y ago
"
10 A = 1
20 A = A + 1
30 PRINT_NON_BLOCKING "HELLO" + "A", when done callback { LINE 40 }
40 PRINT "YES"
50 GOTO 20
A common quiz for Javascript is to ask: which is printed first? “YES” or “HELLO3”? "
Is that a mistake with "HELLO3"?
Should it not be HELLO2?
Or am I stupid?
- vog 9y agoPlease note that your formatting is totally screwed, making your fine comment almost unreadable. See also the "help" link next to the edit box: https://news.ycombinator.com/formatdoc https://news.ycombinator.com/formatdoc