+ 3
JavaScript vs Jquery
Why we use jquery instead of JavaScript. Whereas both languages do same thing.
5 Answers
+ 8
I'll rather use jquery than javascript because of its simplicity.
example:
var a=document.getElementByClassName("abc");
look at how much it takes me to type that when I could just do:
var a=$(".abc");
You see?
+ 3
The reason why you should not use jquery :
1) JavaScript is faster than jQuery as jQuery implicitly runs JavaScript (hence more processing time).
2) Whatever is possible through jQuery can surely be possible through JavaScript, but vice versa may not be the case (as after all jQuery is library based on JavaScript).
3) If jQuery library file/call fails to load, the jQuery code will not execute, but it is not the case for JavaScript.
+ 2
However in my opinion, javascript isnt all that hard in its self!