Skip to main content
100%

Fork of Cars Report

✓ Published0🌍 Public
AAustin Krauss
Last edited Jan 23, 2021
Created on Jan 23, 2021
Forked from Cars Report

This fork of the Cars Report tutorial demonstrates a JavaScript data-processing pipeline that filters and formats car listings. It shows how to define reusable modules with `formatCar.js` and `generateReport.js`, which filter an in-memory JSON array of five cars by price and render each as formatted text. The `getCars.js` module parses a static JSON string and returns the data asynchronously via a Promise with a simulated 2-second delay. The `index.js` script initiates the report by setting a loading message and then updates the page’s `<pre>` element once the data resolves, using only core JavaScript without external charting libraries.

AI-generated description

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

MIT Licensed

Similar vizzes