DEV Community

Discussion on: Why do you use jQuery in 2019?

Collapse
 
vinibrsl profile image
Vinicius Brasil • Edited

I do know JavaScript, and I do know that document.getElementById ('elem') is not equivalent to $('.elem').

jQuery dates from a time when vanilla JavaScript was hard to use because of browser compatibility. The vanilla JavaScript we have today is much more mature than 10 years ago, when jQuery was a must have.

Being mature is not about having smaller function names to do X.

Collapse
 
acunapublic profile image
Anton Tikhomirov • Edited

Sorry for forgot to answer you. Okay, document.getElementById ('elem') is $('#elem'), it's my mistake. So can you give the "more mature" JS examples which is more compact than jQuery?