🌍 Public
Viewing a saved revision (read-only)
16d3492a9df44cb7a4a523d5cfb1cfd9
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.