“Every day, I see people use Javascript to do things that are supported by default in good old HTML & CSS.”
Animated SVGs, sidebars, sticky headers, accordion menus and dark mode all work in plain HTML and CSS. Developers still pull in a script to build them. The browser has handled this for years without a bundle. Most of that JavaScript is there because nobody checked.