Skip to main content
100%

Cars Report

✓ Published1🌍 Public
Nnithya13
Last edited Jan 24, 2020
Created on Jan 24, 2020
Forked from Cars Report

This example demonstrates a simple text-based report of used cars, filtering a list of five vehicles to show only those priced under $2,000. The page initially displays "Loading..." while a two-second delay simulates an asynchronous data fetch using a JavaScript Promise. After the delay, the report renders as multi-line text in a large <pre> element. The code uses ES6 modules to separate concerns: `getCars.js` parses JSON data, `generateReport.js` filters and formats entries with template literals, and `index.js` orchestrates the async flow. The visualization relies on standard DOM manipulation, not external libraries.

AI-generated description

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

MIT Licensed

Similar vizzes