Skip to main content
100%

Cars Report

✓ Published0🌍 Public
Aannie520143
Last edited Sep 28, 2020
Created on Sep 28, 2020
Forked from Cars Report

This example demonstrates how JavaScript modules, promises, and array methods can generate a text-based car report. It shows a list of vehicles, displaying their year, make, model, and price, filtered to only include cars under a specified price threshold. The code uses `Array.filter` and `Array.map` to process the data, with `JSON.parse` to convert embedded JSON into an array of car objects. Asynchronous loading is handled through a `Promise` with `setTimeout`, while `export` and `import` statements organize the logic across separate modules like `formatCar.js` and `generateReport.js`.

AI-generated description

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

MIT Licensed

Similar vizzes