JavaScript or JQuery? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1
7th Mar 2017, 12:23 AM
Smbat Jamalyan
Smbat Jamalyan - avatar
6 Answers
+ 7
jQuery is a library written in js. according to how extensive is the use of jQuery in your code, you can evaluate if your gain on typing it's worth importing the whole library. Practically speaking: importing jQuery only for a date-select widget is obviusly overkill and implementing the widget in native js may improve performance and user experience
7th Mar 2017, 1:22 AM
seamiki
seamiki - avatar
+ 7
jQuery flattens out browser quirks (and adds DOM convenience functions) so that you don't have to know that "IE Q" does X this way and "Opera Z" does it that way. Much like Python's "Don't repeat yourself" or (pick a language's) database layers, all the stuff everybody keeps writing (over and over again) is abstracted so you do it one way that works everywhere. jQueryUI is fancy stuff that leverages jQuery's predictability to provide consistent UI across browsers. The "j" ... stands for javascript. Importing the library (by version, which most do) only matters something like 'once'. Google sets caches for 1 year...and you probably already have a copy in your cache from just being online.
7th Mar 2017, 2:09 AM
Kirk Schafer
Kirk Schafer - avatar
+ 3
JQuery is a JavaScript library. If u master js it will help u to do well in JQuery !
7th Mar 2017, 12:26 AM
Vishnu DxB
Vishnu DxB - avatar
+ 1
javascript!!!!!!
7th Mar 2017, 12:24 AM
diogo
+ 1
yes, but some people have an opinion that clear javascript is better
7th Mar 2017, 12:28 AM
Smbat Jamalyan
Smbat Jamalyan - avatar
+ 1
JavaScript libraries have pre written JavaScript codes so it is said that JavaScript is the best.
7th Mar 2017, 12:30 AM
Vishnu DxB
Vishnu DxB - avatar