Javascript can create atomic bombsprogramming.devimage TechCodex ( @TechCodecPawx@programming.dev ) Programmer Humor@lemmy.mlEnglish • 1 year ago message-square21fedilinkarrow-up1419
arrow-up1419imageJavascript can create atomic bombsprogramming.dev TechCodex ( @TechCodecPawx@programming.dev ) Programmer Humor@lemmy.mlEnglish • 1 year ago message-square21fedilink
minus-square WtfEvenIsExistence3️ ( @WtfEvenIsExistence@reddthat.com ) linkfedilinkEnglish9•1 year agoIs this some highly sophisticated programmer humor that I’m too tech-illiterate to understand?
minus-square exscape ( @exscape@kbin.social ) linkfedilink19•1 year agoCSS is used to create the design, basically the look (colors, layout and so on), but no substance. JavaScript is used to implement code and logic. HTML + JavaScript would typically (since you’re supposed to use CSS to create colors and design) look very dull, thus the black-and-white Oppenheimer.
minus-square Rikudou_Sage ( @rikudou@lemmings.world ) linkfedilinkEnglish2•1 year agodocument.querySelector('.whatever').style.color = "red"; Don’t recommend, though.
minus-square exscape ( @exscape@kbin.social ) linkfedilink2•1 year agoSure, but setting the .style attribute could really be argued as using CSS, just with a different interface. W3Schools refers to this as “inline CSS”.
Is this some highly sophisticated programmer humor that I’m too tech-illiterate to understand?
CSS is used to create the design, basically the look (colors, layout and so on), but no substance.
JavaScript is used to implement code and logic.
HTML + JavaScript would typically (since you’re supposed to use CSS to create colors and design) look very dull, thus the black-and-white Oppenheimer.
document.querySelector('.whatever').style.color = "red";
Don’t recommend, though.
Sure, but setting the .style attribute could really be argued as using CSS, just with a different interface. W3Schools refers to this as “inline CSS”.