+ 4

JavaScript and JQuery

Is there something I can do with JavaScript that cannot be done on JQuery? I find JQuery simpler to write and easier to read and understand compared to plain js, so I'd like to know if there are some things that can be done with plain js that JQuery cannot do.

7th Mar 2017, 5:08 AM
Ezekiel Oladejo
Ezekiel Oladejo - avatar
12 Answers
+ 6
jQuery is much easier to use in many ways so if you can use it I suggest you to do so. Not to mention cross-browser solutions which are pain to implement in vanilla JS. So use jQuery to make your life easier and use vanilla js too, they can be used simultaneously.
7th Mar 2017, 5:57 AM
TamĂĄs Barta
TamĂĄs Barta - avatar
+ 6
jQuery is a JavaScript library. That means all you can do in jQuery, you can do in JavaScript as well. You can do much more with pure JavaScript
7th Mar 2017, 5:22 AM
Patrik Sokol
Patrik Sokol - avatar
+ 5
jQuery is just a simplification of JavaScript common tasks and makes syntax easier to write so use it where you need it. Just take into account the size of the lib, you can also customise it, remove unused parts, take only needed parts and so on..
7th Mar 2017, 5:27 AM
Patrik Sokol
Patrik Sokol - avatar
+ 4
up to you ✌
7th Mar 2017, 5:31 AM
Patrik Sokol
Patrik Sokol - avatar
+ 2
problem is I see a lot of people relying too much on jquery without the js fundamentals. it turns into ugly code. if you understand js well and know how to make modules etc and use jquery sparingly is fine. Believe me I wrote horrible code with jquery lol. React is the future though. I will recommend a course on udemy called understanding the weird parts of js. or the books called "you dont understand js" series.
8th Mar 2017, 4:15 AM
Oscar Messina Jr
Oscar Messina Jr - avatar
+ 1
Thanks man. 😀😀
7th Mar 2017, 5:33 AM
Ezekiel Oladejo
Ezekiel Oladejo - avatar
+ 1
use plain js and move to react
7th Mar 2017, 11:57 PM
Oscar Messina Jr
Oscar Messina Jr - avatar
+ 1
Alright. I'll check 'em out
8th Mar 2017, 4:17 AM
Ezekiel Oladejo
Ezekiel Oladejo - avatar
0
So what would you suggest? Just use plain js?
7th Mar 2017, 5:24 AM
Ezekiel Oladejo
Ezekiel Oladejo - avatar
0
Okay... So I'd write JQuery where I seem fit and use Vanilla where necessary
7th Mar 2017, 5:30 AM
Ezekiel Oladejo
Ezekiel Oladejo - avatar
0
Thanks a lot @Barta.
7th Mar 2017, 6:05 AM
Ezekiel Oladejo
Ezekiel Oladejo - avatar
0
@oscar I'll check it out.
8th Mar 2017, 4:03 AM
Ezekiel Oladejo
Ezekiel Oladejo - avatar