In the last exercise, you used jQuery to cut twelve lines of code down to three.
Let’s use Legos as an analogy for understanding how jQuery works. With an infinite number of Legos, you could build an entire city — of course, this would take a long time. What if you were given pre-made Lego buildings, Lego roads, Lego parks, etc? You could build a city much faster.
.fadeOut() etc., to HTML elements.
In the next exercise, we’ll show you how to load the jQuery library into your app so that you can make use of these powerful, pre-made methods.