What is the difference between JavaScript and JQuery
Last updated 4 years, 5 months ago | 1756 views 75 5
JQuery | Difference between JavaScript and JQuery
Javascript is a client-side scripting language whereas jQuery is a library (or framework) built with JavaScript.
| Javascript | JQuery |
|---|---|
| javascript is a dynamic and interpreted client-side scripting language | Jquery is a library (or framework) built with JavaScript |
| Required more line of code with JavaScript | Required less line of code with Jquery |
| Need to write extra lines of code to meet the cross-browser compatibility. | JQuery has an inbuilt feature of cross-browser compatibility. |
| Pure JavaScript can be faster for DOM selection/manipulation than JQuery as JavaScript is directly processed by the browser. | JQuery is also fast but it required to convert the JQuery code into javascript to make it run in a browser as it is built on JavaScript. |
| The browser itself understands and supports JavaScript. | It is required to include the jQuery library URL in the header of the page. |