Skip to main content
100%

Cars Report

✓ Published0🌍 Public
Mmeihaoming
Last edited Nov 12, 2019
Created on Oct 15, 2019
Forked from Cars Report

This example demonstrates a JavaScript workflow for fetching car data and generating a text-based report filtered by price. The page initially displays “Loading...” and then uses a Promise from `getCars()` to simulate a delayed data source, parsing a hardcoded JSON array. The `generateReport` function filters cars under a maximum price and formats each entry using `formatCar`, which outputs strings like “2000 Honda Accord: $2800”. The final report is rendered into an HTML `<pre>` element with large font size, showcasing modular ES6 imports and a Promise-based data flow without any visualization libraries.

AI-generated description

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

MIT Licensed

Similar vizzes