Skip to main content
100%

Cars Report

✓ Published1🌍 Public
HHadi Boukdir
Last edited Jul 17, 2019
Created on Jul 15, 2019
Forked from Hello VizHub

This example shows a text-based report of cars with prices under a given threshold, displayed as a formatted list in a web page. It demonstrates how JavaScript objects, arrays, and modules work together using ES6 imports and exports. The code parses an inline JSON data source, filters car entries by price, and formats each result like“2012 Nissan Leaf: £1800”. A Promise-based asynchronous function simulates a delayed data fetch, while the DOM is updated via `getElementById` and `textContent`, then the report is generated and rendered in a `<pre>` element.

AI-generated description

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

MIT Licensed

Similar vizzes