🌍 Public
Viewing a saved revision (read-only)
eb379df511cf475ab0aecea39605ac6b
Fork of Cars Report
A fork of the Cars Report demonstrates asynchronous data fetching and dynamic DOM updates using vanilla JavaScript modules. It uses the `getCars()` promise to load hard-coded JSON car data after a simulated delay, then `generateReport()` filters cars by a price cap and formats them with `formatCar()`. The resulting text replaces a "Loading..." placeholder in the page’s pre element, combining `fetch`-like patterns with ES module imports/exports.
AI-generated descriptionAn example tutorial of how to use JavaScript objects, arrays, and modules.