Skip to main content
100%

Cars Report

✓ Published0🌍 Public
Pphaml5
Last edited Mar 31, 2020
Created on Mar 31, 2020
Forked from Cars Report

This example demonstrates a simple text-based report of used cars, filtering a hardcoded JSON dataset by price and displaying matching entries. The interface shows a loading message before asynchronously fetching the data using a Promise and setTimeout in `getCars.js`. The report is generated with `generateReport` and `formatCar` modules, which use destructuring and template literals to format each car’s year, make, model, and price. The final output is rendered into a `<pre>` element, with all logic orchestrated through ES6 imports and exports.

AI-generated description

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

MIT Licensed

Similar vizzes