Skip to main content
100%

Cars Report

✓ Published0🌍 Public
FFatimaJahara
Last edited Aug 26, 2019
Created on Aug 26, 2019
Forked from Cars Report

This example demonstrates a text-based car report generated asynchronously from hard-coded JSON data. It parses five car records with year, make, model, and price, filters them by a price threshold, formats each matching entry, and displays the result in an HTML `<pre>` element. The code uses ES6 modules, `JSON.parse`, `Promise`, `setTimeout`, and string template literals. A loading message appears initially, followed by the report after a two-second delay, implemented via `getCars` and `generateReport` functions.

AI-generated description

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

MIT Licensed

Similar vizzes