Skip to main content
100%

Cars Report

✓ Published0🌍 Public
Ssgroko
Last edited Aug 11, 2020
Created on Aug 11, 2020
Forked from Cars Report

This example demonstrates a JavaScript data-processing workflow that filters a hardcoded array of car objects and displays a formatted text report. It shows how asynchronous data loading and modular functions combine to produce a readable list of cars under a price threshold. The code uses `JSON.parse` to parse inline car data, a `Promise` with `setTimeout` in `getCars.js` to simulate a delayed fetch, and `Array.filter` with `Array.map` in `generateReport.js` to select and format entries. Results are written to the DOM via `document.getElementById` and `textContent` in `index.js`.

AI-generated description

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

MIT Licensed

Similar vizzes