Skip to main content
100%

Cars Report

✓ Published0🌍 Public
EEdward-Elric233
Last edited Aug 11, 2020
Created on Aug 10, 2020
Forked from Hello VizHub

This example shows a text-based report of cars priced under a maximum threshold, displayed in large type on a webpage. It demonstrates asynchronous data handling by fetching a hardcoded JSON array of five car objects after a two-second delay, then filtering and formatting the results. The code uses JavaScript modules with exported functions, a `Promise` with `setTimeout` to simulate loading, and the Document Object Model’s `textContent` property to update the page. It highlights array methods like `filter`, `map`, and `join` for report generation.

AI-generated description

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

MIT Licensed

Similar vizzes