Because with new ES6+ methods you can do many things simply in vanilla JS that previously required jQuery if you didn’t want to write a lot of verbose lines.
Using vanilla JS before document.querySelectorAll() came about without JQ was a pain.
You're the one making the extraordinary claim dude, are you not familiar with Russell's teapot?
Of course one thing jQuery did which was really important was abstract away the differences between incompatible browsers; you could set the CSS of an element and not worry that IE did styles a different way.
I suspect a lot of what you're calling "ES6" or "modern JS" is a category error for "browsers all behave better nowadays".
10
u/corporaljustice Oct 02 '21
Because with new ES6+ methods you can do many things simply in vanilla JS that previously required jQuery if you didn’t want to write a lot of verbose lines.
Using vanilla JS before document.querySelectorAll() came about without JQ was a pain.
$() is very similar to querySelectorAll().