Hacker News new | past | comments | ask | show | jobs | submit login

> That said I'm interested in what jQuery can do that vanilla JS can't.

jQuery is written in JS, so jQuery can't do what JS can't.

The main reason for using jQuery, as you say, is a cleaner API for DOM manipulation...

    $(".something").parent().append($("<button />").text("click me").click(fn));
If you know nothing about jQuery, you can guess what that does. Of course, you can do it in vanilla JS too. However it's a little harder to write and (more importantly) read.



Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: