Main content
What is jQuery?
jQuery is a popular JavaScript library that makes life easier for web developers. It's packed with functions that simplify common tasks, like manipulating webpages, responding to user events, fetching data from servers, and creating animations. jQuery can do the same things as the JavaScript DOM API, but with fewer lines of code. Plus, it takes care of any cross-browser bugs or inconsistencies!
Want to join the conversation?
- Do you have to fully know the JavaScript language to learn this course?
-Anna14Love(3 votes)- You don't have to know everything there is to know about JS, but there's a pretty good summary about what you should know in this article:
https://www.khanacademy.org/computing/computer-programming/html-js-jquery/jquery-intro/a/are-you-ready-to-learn-jquery
If you're still unsure of your knowledge, take the JS quiz:
https://www.khanacademy.org/computing/computer-programming/html-css-js/html-css-js-intro/e/quiz--javascript-recap(9 votes)
- so clearly jQuery and Js is just the same language but jQuery use less more code or what can someone pls tell me(3 votes)
- You're absolutely right.
jQuery is a collection of objects and functions, all written in JavaScript, that you can use for your convenience.(5 votes)
- could php do the same thing as jQuery(3 votes)
- Why is jQuery so important when I can use javascript? But I can understand it if you never made a webpage before I wouldn't undermine jQuery because it would make it easier to use it on javascript to a degree.(1 vote)
- jQuery is a library written entirely in Javascript. If you use jQuery, you are using Javascript. "jQuery: The Write Less, Do More, JavaScript Library" claims to save you time & effort in dealing with HTML and the DOM.(4 votes)
- im taking all courses so i dont have to in the future(1 vote)
- Ummm... ok :/ :p
Let us know if you have any questions related to the programming content.(4 votes)
- What's the difference between java and js(1 vote)
- Java and JavaScript are two different languages, developed by different companies around the same time. There are a lot of differences between them - Java is compiled, while JavaScript is interpreted; Java variables are strongly typed, while JavaScript variables are loosely typed; etc. You may want to research this topic more on your own.
The difference with which you may want most to concern yourself for now is that Khan Academy teaches JavaScript, not Java.(4 votes)
- Can it work with python(1 vote)
- You cannot use jQuery with Python, but PyQuery would work fine.(4 votes)
- Can you make us practice a real animation?(2 votes)
- I started doing the normal JS in webpages, but heard this was easier. Is it ok that i started this without finishing that?(1 vote)
- You should be fine learning jQuery. I would recommend learning regular JS DOM manipulation after you're done, though.(2 votes)
- I always used to have a lot of problems while using the DOM and jQuery in Firefox, although it says to use Chrome I used to use Firefox and I had a lot of problems. Now I use Brave which is a faster and more privacy-focused browser, So it has rigorous anti-tracking, however, Brave is based on the Chromium engine which is similar to Chrome and uses Blink rendering engine, and V8 JavaScript engine which is also used in Chrome. So my question is will it work better in Brave than it did in Firefox?(1 vote)
- Your experience with Brave should be almost identical to Chrome, except some more rigorous privacy settings set by default may interfere with some performance and convenience related cookies. jQuery and DOM manipulation should not work any differently, unless you disable JS in site settings.(2 votes)
Video transcript
jQuery is the most popular library
on the web today. It's a library of JavaScript functions that make it easy for webpage developers
to do common tasks-- like manipulating the webpage,
responding to user events, getting data from their servers,
building effects and animations, and much more. jQuery builds on top of the functionality that browsers give us
via the JavaScript DOM API, but lets us accomplish the same things
in fewer lines of code. For example, let's say you wanted to
resize all of the images on your page, like when the user clicked a button. You could write these
four lines of code here, and that would work. Or, you could write
this single line of code, and jQuery will do all the
heavy lifting for you. Plus, jQuery takes care of any
cross-browser bugs or inconsistencies. In 2014, over 60 percent of the
top million webpages included jQuery. So, pretty much all web developers
either know jQuery, or have used jQuery
at some point in their career. And now you can become
one of those developers.