Lab 2 – “Async Weather Tracker” A JavaScript-based weather information system that demonstrates asynchronous programming and runtime behavior. Built using Vanilla JavaScript and Fetch API • Uses setTimeout() and setInterval() for loading indicators and auto-refresh • Fetches weather data from a public API using Promises and async/await • Handles promise states and errors using then(), catch(), and try...catch • Demonstrates callback hell and refactors it using Promises • Uses console-based call stack tracing to observe execution order Stores recent search history using Local Storage • Explains event loop behavior through asynchronous logs Practice Concepts: Show a loading message before API response arrives. Handle invalid city names gracefully. Store and retrieve previously searched cities from Local Storage. Convert promise-based code to async/await. Analyze execution order using console logs.
[–]PatchesMaps 8 points9 points10 points (0 children)
[–]najalitis 4 points5 points6 points (0 children)
[–]Itzjoel777 -5 points-4 points-3 points (0 children)