Skip to main content
100%

Cars Report

✓ Published0🌍 Public
Ssanjna283
Last edited Feb 4, 2020
Created on Feb 4, 2020
Forked from Cars Report

This example demonstrates how to generate a text-based car report by filtering a JavaScript array of car objects based on price and formatting each entry. It displays a list of cars with their year, make, model, and price in a large text element on the page. The code uses the `filter`, `map`, and `join` array methods, along with the `Promise` constructor and `setTimeout` to simulate asynchronous data retrieval. The project is structured with ES6 modules, including `formatCar.js` and `generateReport.js`, and relies on `JSON.parse` to convert embedded JSON data.

AI-generated description

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

MIT Licensed

Similar vizzes