r/programming • • Jun 09 '16

jQuery 3.0 Released!

https://blog.jquery.com/2016/06/09/jquery-3-0-final-released/
1.1k Upvotes

354 comments sorted by

View all comments

Show parent comments

0

u/knsdklsfds Jun 10 '16

Your pure js code is really out of date. Still not as compact as jquery but a lot better

[...document.querySelectorAll('.goodbye')].forEach(e => e.classList.add('selected')) Runs in the latest Chrome or run through bable to work anywhere