3 ms·
Not really. $('h1').html('Billy Named Emperor') to hack around with web pages is actually super easy.
by astrodust 8y ago
Not really. $('h1').html('Billy Named Emperor') to hack around with web pages is actually super easy.
- anoncake 8y ago'PRINT "Hey there Joe"' is a lot more obvious than "magic('magic').magic('Billy Named Emperor')"
- astrodust 8y agoIt's all magic until you explain it. How is PRINT any different from console.log()? On those historical platforms you're quickly going to have to explain what GOTO is and how it's different from GOSUB, and then that you'll need to plan out your program in advance so you have enough "lines" to write in what you want, and that if you mess stuff up, you can't easily renumber, so you'll just patch in a bunch of GOTO statements to work around that and... JavaScript, ugly as it can be, is 100x simpler. You want to add a line of code? Add the line. Click run again. You want to write a function? Write a function. You want to do asynchronous programming? Promises aren't that mysterious now that there's await/async. It's all within reach.
- andrewstuart 8y agoSure thing. All you need to understand is jquery, selectors, the DOM, method calls, inner HTML and in fact the entire context of web programming in which this command executes. Pretty much exactly the same as print "hello world"