• Friday , 29 May 2020

jQuery vs Javascript

Code Canyon

What’s the difference between jQuery and Javascript? Let’s break it down.

Original source

3d Ocean

Related Posts


  1. Stylish LOL montages
    May 14, 2019 at 17:51

    Why you r not talking about performance difference, are peoples are stupid replacing one line of jQuery with five lines of VanillaJS..

  2. Kevin James Stevens
    May 14, 2019 at 17:51

    Nowadays, querySelectorAll puts it in a NodeList, but you still have to use forEach function to classList.add() on each of them.

  3. Cherry Purrp
    May 14, 2019 at 17:51

    Is it better to separate the languages?

  4. TheCarFactor
    May 14, 2019 at 17:51

    What a pile of shit! document.querySelector(“.Goodbye”).className = “selected”;
    Single line coding with Vanilla JS.

  5. Nageswara Rao
    May 14, 2019 at 17:51

    super explanation. thanks bro. if possible can you please make video on jquery vs react vs vue

  6. jorge segura
    May 14, 2019 at 17:51

    can you do the EXACT same thing with Jquery or learning java script is preferable? how about for the more elaborate stuff? I am new to coding?

  7. KK
    May 14, 2019 at 17:51

    What about the following line instead of five lines JS:
    document.getElementsByClassName("goodbye")[0].className = "selected";
    would also work

  8. Ruben Gaspar
    May 14, 2019 at 17:51

    is there an advantage to using javascript instead of jquery? should I learn both? just one of them? i don't get it. It just seems like jquery is way simpler but jquery says it uses javascript language so i don't understand that.

  9. LionOfGod
    May 14, 2019 at 17:51

    Good job

  10. rebih brinki
    May 14, 2019 at 17:51

    You mean the mother vs the son

  11. Richard X Mercado
    May 14, 2019 at 17:51

    Thank you a lot. I'm learning code from a free website which is working great but i never understood how these two terms differentiate. Now, everything is cleared up!

  12. Gatot
    May 14, 2019 at 17:51

    So where should i begin after HTML and CSS? is it Javascript or jQuery?

  13. FullStackDeveloper
    May 14, 2019 at 17:51

    gud one

  14. Giovanni Gokhan Morkoc
    May 14, 2019 at 17:51

    Personally I do love using jQuery but I will have to say that he didn’t use the same logic/algorithm to just adding class if you follow my example you can see this could be done with pure js with two lines of code.
    var element = document.getElementById("myDIV");

  15. Christian Vintilla
    May 14, 2019 at 17:51

    Favorite part is on line 29 where you declare the variable outside the loop

  16. Richard Urbanec
    May 14, 2019 at 17:51

    When we begin to learn a new language and arrive at functions, the first thing we learn about them is that functions are there so that we don't have to retype the same code again and again everytime we want to use the sequence of code. So thank you, captain Obvious, for stating that jQuery is exactly that.

  17. Mrcaptain
    May 14, 2019 at 17:51

    You can add a class to JavaScript waaaaaaaaaaaaaaaaaaaay easier than what you shiwed.. not very useful, thank you very much (ironic)

  18. Ahmed Vlogs
    May 14, 2019 at 17:51

    nice explanation , thanx

  19. Traversy Media
    May 14, 2019 at 17:51

    Maybe if you are using JavaScript from 2008. Why not use "classList.add('selected')"? I think you need to brush up on your JS my friend

  20. Puscky Design
    May 14, 2019 at 17:51

    Really useful! Amazing explanation! 🙂

  21. James Murphy
    May 14, 2019 at 17:51

    Wow, THANK YOU for presenting this so clearly. I was sporadically using jQuery without really understanding what any of the code meant (just copy / pasting code I would find to achieve what I needed to do, asking more experienced designers for help etc.). I knew I needed to step my game up from just html, css, and bootstrap so for the past 2 months have been teaching myself JavaScript. Long story short, recently someone tried to explain to me that what I have been learning (JavaScript) is "un-simplified" jQuery. I had no idea lol! But when they tried to explain how the two languages are tied together I was left confused. This really cleared up the basic correlation for me!

  22. Naresh Soni
    May 14, 2019 at 17:51

    thank you so much

  23. Matt Boehm
    May 14, 2019 at 17:51

    I really like the way you present your information but I think your example is a little flawed. The same result could be achieved with just javascript with this one line:


    while the jQuery is shorter. It's not as drastic. I'm not sure if you were using that long-form example to emphasize your point more but I just wanted to point that out.

Leave A Comment

You must be logged in to post a comment.