Skip to main content
100%

Cars Report

✓ Published1🌍 Public
Llxdexixi
Last edited Jan 5, 2020
Created on Jan 5, 2020
Forked from Cars Report

This example demonstrates how to generate a text-based car report by filtering a dataset of car objects by price and formatting the results as a list. It uses JavaScript modules to separate concerns, with `getCars.js` simulating asynchronous data retrieval via a Promise, `formatCar.js` formatting individual car entries, and `generateReport.js` composing the final report. The page displays a loading message initially, then the filtered report is rendered into an HTML `<pre>` element after the simulated delay.

AI-generated description

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

MIT Licensed

Similar vizzes