I was wondering what the downsides to creating web elements like divs in JavaScript as opposed to HTML were. It seems to me that it just adds to what you can do, and it doesn’t seem much harder. For example, if you have two dives side by side, one taking up 30% of the screen from the left and the other taking up 70% of the screen from the right, you could just define a single variable equal to the ratio, and modify the display just by changing the value. However, it seems to be a much less common approach. Are there situations in which it would be a bad idea to use JavaScript? Thanks.
A post was merged into an existing topic: Creating Page Display Using JavaScript
Please do not create duplicate topics for the same challenge/project question(s). This duplicate topic has been unlisted and merged with the other topic.
Thank you.