Skip to main content
100%

Cars Report

✓ Published0🌍 Public
DDannwiz
Last edited Mar 21, 2021
Created on Mar 21, 2021
Forked from Cars Report

This example demonstrates generating a text-based car report from a hardcoded JSON dataset. It shows an HTML page that displays the make of the first car in a large `<pre>` element after an asynchronous load. The code uses native JavaScript objects, arrays, `JSON.parse`, and `setTimeout` within a Promise to simulate fetching data. Modular ES6 exports in `formatCar.js` and `generateReport.js` illustrate reusable formatting and filtering functions, with `index.js` importing from a fictional `cars` module.

AI-generated description

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

MIT Licensed

Similar vizzes