At the university I went to, physics was a requirement for a computer science degree. Not for programming’s sake, but because the degree was a science degree. I actually found the required electrical engineering classes far more interesting and relevant.
In any event, like always, use the right tool for the job at hand. JavaScript is really good at manipulating the DOM (of course it is... that’s why it exists), but styling the DOM should be done with CSS (which is why it exists), preferably in external files in order to separate concerns and make writing/debugging/editing/extending far easier. Same goes for JavaScript.
In any event, like always, use the right tool for the job at hand. JavaScript is really good at manipulating the DOM (of course it is... that’s why it exists), but styling the DOM should be done with CSS (which is why it exists), preferably in external files in order to separate concerns and make writing/debugging/editing/extending far easier. Same goes for JavaScript.