jQuery vs Plain JavaScript
Everything jQuery does can be done with modern plain JavaScript. Here is the same task both ways: it uses querySelector, addEventListener and classList.
Examplehtml
jQuery is still useful for old projects and some plugins. For new projects, plain JavaScript or a framework is usually the better choice.
Quick check
Which plain JavaScript method is the equivalent of $("#id")?
Finish the quick check (and any code exercise) to complete this lesson, or mark it done yourself.
Tip: use the left and right arrow keys to move between lessons.