Co-Authored By:

Asked by: Yilian Untel
technology and computing web developmentWhat is the use of JavaScript and jQuery?
Similarly, you may ask, what is jQuery and why it is used?
jQuery is a lightweight, "write less, do more",JavaScript library. The purpose of jQuery is to make it mucheasier to use JavaScript on your website. jQuery takes a lotof common tasks that require many lines of JavaScript code toaccomplish, and wraps them into methods that you can call with asingle line of code.
Thereof, is it better to use jQuery or JavaScript?
With JavaScript, one has to write more lines ofcode. With JQuery, one has to write fewer lines of code thanJavaScript. Pure JavaScript is faster in accessingDOM (document object model.) as it cut the overhead whichJQuery has.
JavaScript is a client scripting language whichis used for creating web pages. It is a standalone languagedeveloped in Netscape. It is used when a webpage is to be madedynamic and add special effects on pages like rollover, roll outand many types of graphics.