Q). What is jQuery?
A).jQuery is a library that makes it quicker and easier to build JavaScript webpages and web apps. Often with jQuery you can write a single line of code to achieve what would have taken 10-20 lines of regular JavaScript code.
The jQuery library actually comes in 2 forms:
1).The uncompressed .js file is easy to read and modify, but itâs around 160kb in size (at the time of writing).
2).The minified .js file has all comments, whitespace, and other unnecessary characters removed from the file, squeezing the whole library into a mere 23kb. Although you canât easily read the code, this is the version youâll want to place on your site, as itâs much quicker for visitors to download.
Q).How does it help us as developers?
A). iT'S FREE, POWERFUL, TIME-SAVING. X BROWSER COMPATIBLE.
*)jQuery is a free JavaScript library.
*)With jQuery you can write powerful JavaScript apps using fewer lines of code.
*j)Query is great for things like animations, Ajax requests, DOM manipulation, image effects, and user interface elements.
*)jQuery lets you easily write cross-browser JavaScript code.
Q).Why do we have 2 version of jQuery - minified and uncompressed?
a). 1).The uncompressed .js file is easy to read and modify, but itâs around 160kb in size (at the time of writing).
2).The minified .js file has all comments, whitespace, and other unnecessary characters removed from the file, squeezing the whole library into a mere 23kb. Although you canât easily read the code, this is the version youâll want to place on your site, as itâs much quicker for visitors to download. ( PERFECT FOR MOBILE DEVICES, MUCH QUICKER TO LOAD). sIZE DOES MATTER, AFTERALL
