Beginner Series: jQuery Tutorial
jQuery is a JavaScript library, according to the official documentation.
Many refer to it as a JavaScript framework, however, library is the correct term to use when describing it. As to why we’ll get to the difference between those two terms in a bit.
For now, all you need to know is that jQuery is designed to make working with JavaScript much easier, primarily when it comes to building websites.
Because of that, it’s important that you understand when you’re working with jQuery you are, in fact, writing in JavaScript. jQuery is not meant to replace JavaScript, nor does it act as a substitute. Instead, it’s only meant to enhance use of the language.
jQuery is structured so that you can call upon functions with a single line of code. If you were working with just JavaScript, you would have to write many lines of code to do the same thing. However, jQuery wraps all the general coding of a function into one package – which is why many refer to it as a framework – so that you can write programs and apps easily and more efficiently.
That said, you do not need to be an expert in JavaScript to work with jQuery. This is because it is designed to simplify working with the language, by shortening several complicated processes; like AJAX calls and DOM manipulation.
In terms of a framework, jQuery is not the only library of its kind. There are many other JavaScript frameworks that developers can use when building websites and apps.
What makes jQuery so popular, is that it’s remarkably powerful, has a wide range of plugins and commands, and is easy to use and read. One could even go so far as to say that jQuery syntax is attractive.
How is jQuery Used?
jQuery is most commonly used as a client-side scripting language for web applications and web development. This means that it is added alongside HTML and CSS, located on the client side of a web page as opposed to the server side.
When a visitor lands on a webpage that uses JavaScript, the script is sent to the browser and that is when it is executed. In essence, the browser is what does the work with the script.
In layman’s terms, jQuery is used to spruce up the interface or interactions on a website. This can happen through user input fields, larger forms, pop-up windows and notifications, and much more.
Next, we’re going to talk about the Benefits of Learning jQuery.
Disclosure of Material Connection: Some of the links in the post above are “affiliate links.” This means if you click on the link and purchase the item, I will receive an affiliate commission. Regardless, I only recommend products or services I use personally and believe will add value to my readers.