๐Ÿš€ Exercises XP โ€” Fetch API & Async/Await

Run each exercise and watch the console + output panel for results.

๐ŸŒŸ Exercise 1 โ€” Giphy API (hilarious)

Fetch from Giphy, check status, log the JSON, handle errors.

๐ŸŒŸ Exercise 2 โ€” Giphy API (sun)

Fetch 10 gifs about โ€œsunโ€ starting at offset 2. Check status, log the JSON, handle errors.

๐ŸŒŸ Exercise 3 โ€” Async function (SWAPI)

Rewrite with async/await; no .then(). Check status and handle errors.

๐ŸŒŸ Exercise 4 โ€” Analyze

What does this code output? calling immediately, then after ~2s resolved.

๐Ÿงพ Output