DEV Community

Discussion on: 9 Tricks To Write Less JavaScript.

Collapse
 
madza profile image
Madza

Love all the syntax features from ES6 and above. Tho there is still room for improvement, like more concise syntax for targeting DOM elements (like jquery does)

Collapse
 
jamesthomson profile image
James Thomson

That's a browser API consideration. ECMAScript (i.e. ES6) has no concept of a browser.

Besides that, have you used querySelector? You can do pretty much any similar jQuery selection with it.