In the last exercise, you used jQuery to cut twelve lines of code down to three.
Let’s use LEGO bricks as an analogy for understanding how jQuery works. With an infinite number of bricks, 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.