Work with legacy and simple sites using jQuery selectors, events, AJAX, effects, and plugins.
Lessons
Loop over a matched set and act on each element.
Iterating with each() is easiest to learn by reading the example, changing it, and observing the result.
$('.lesson').each(function (index) {
$(this).prepend((index + 1) + '. ');
});
$.each(['HTML', 'CSS', 'jQuery'], function (i, name) {
console.log(i, name);
});Practice the Iterating with each() example in a small scratch file, then explain what changed and why.