Skip to main content
100%

Cars Report

✓ Published0🌍 Public
BBarryC7
Last edited Oct 28, 2019
Created on Oct 24, 2019
Forked from Hello VizHub

This example shows a text-based report of cars whose price falls below a specified maximum, displaying each car’s year, make, model, and formatted price. The page initially shows “Loading......” before the report appears after a two-second delay. The code uses asynchronous JavaScript with a Promise-based `getCars` function, array methods like `filter`, `map`, and `join`, and ES modules for exporting `formatcar` and `generateReport`. The data is hardcoded as a JSON string and parsed with `JSON.parse`, with the final output rendered into a `<pre>` element.

AI-generated description

An example tutorial of how to use JavaScript object, array, and modules.

MIT Licensed

Similar vizzes