+ 3

JavaScript vs Jquery

Why we use jquery instead of JavaScript. Whereas both languages do same thing.

15th Dec 2017, 6:26 AM
AJAY KUMAR GUPTA
5 Respostas
+ 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?
15th Dec 2017, 6:44 AM
᠌᠌Code X
᠌᠌Code X - avatar
+ 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.
15th Dec 2017, 8:30 AM
AJAY KUMAR GUPTA
+ 2
However in my opinion, javascript isnt all that hard in its self!
15th Dec 2017, 6:49 AM
Nathan
Nathan - avatar