Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Report

Public visualization

Cars Report

0 stars0🌍 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.

Comments

Sign in to join the discussion.

MIT Licensed