As someone who experienced the rise of JavaScript, CSS and modern frontend frameworks, your comment gives me a chuckle because I'm pretty sure using JavaScript for hover effects pre-dates the ability to do that reliably using CSS.
Added: And it was not a deliberate choice but kind of a necessity.
https://stackoverflow.com/questions/39979816/how-was-jquery-...
https://github.com/jquery/sizzle
If you think that's wild, before there were dev tools in every browser, there was only Firebug (yes, there was only `alert` before that, we didn't even have `console.log`):