3 ms·
Javascript is pretty much the new BASIC for kids these days. 10 print "BAH" 20 GOTO 10 <script> for(i=0;i<100;i++) { document.write("BAH"); }
by axod 17y ago
Javascript is pretty much the new BASIC for kids these days.
10 print "BAH"
20 GOTO 10
<script>
for(i=0;i<100;i++) {
document.write("BAH");
}
</script>
- abstractbill 17y agoTo some extent, but it's a real shame it doesn't (always) come with PLOT and BEEP.
- stevejohnson 17y agoJavascript has too many layers to be comprehensible to new programmers. Do you see how many extra tokens you have in the second example? Not only that, but you have to open the page in the web browser, rather than 'run the program.'
- asciilifeform 17y agoBarring grotesque hacks, Javascript (and the entire standard WWW stack) will neither emit sound nor write to a disk. Not to mention the inescapable "If InternetExplorer Then CrappyWorkaround" abominations which come with web programming.