Work with legacy and simple sites using jQuery selectors, events, AJAX, effects, and plugins.
Lessons
Load and parse JSON in one call.
$.getJSON() is easiest to learn by reading the example, changing it, and observing the result.
$.getJSON('/api/lessons', function (lessons) {
const items = lessons.map(l => '<li>' + l.title + '</li>').join('');
$('#list').html(items);
});
$.get('/api/status', function (data) {
$('#status').text(data.message);
});Practice the $.getJSON() example in a small scratch file, then explain what changed and why.