+ 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.
12 ответов
+ 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.
+ 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
+ 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..
+ 4
up to you ✌
+ 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.
+ 1
Thanks man. 😀😀
+ 1
use plain js and move to react
+ 1
Alright. I'll check 'em out
0
So what would you suggest? Just use plain js?
0
Okay... So I'd write JQuery where I seem fit and use Vanilla where necessary
0
Thanks a lot @Barta.
0
@oscar
I'll check it out.