Skip to main content
100%

Cars Report

✓ Published1🌍 Public
Mmaximus2581
Last edited Jan 5, 2021
Created on Dec 29, 2020
Forked from Hello VizHub

This example shows a simple text-based report of car listings filtered by price. It demonstrates asynchronous data fetching with a mock API using JavaScript Promises, and modular code organization with ES6 exports and imports. The `getCars` function simulates a two-second delay before returning parsed JSON car data, while `generateReport` filters cars under a specified price and formats each entry using a template literal in `formatCar`. The result replaces the initial "loading..." text in an HTML `<pre>` element.

AI-generated description

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

MIT Licensed

Similar vizzes