Skip to main content
100%

Fork of Cars Report

✓ Published0🌍 Public
Jjakfie
Last edited May 17, 2021
Created on May 17, 2021
Forked from 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 description

An example tutorial of how to use JavaScript objects, arrays, and modules.

MIT Licensed

Similar vizzes