Skip to main content
100%

Cars Report

✓ Published0🌍 Public
Kkkwyoung
Last edited Aug 4, 2020
Created on Jul 29, 2020
Forked from Cars Report

This example displays a text-based report of used cars, filtered to show only those priced below $2,000 and formatted as a list of year, make, model, and price. The page initially shows "Loading..." while it retrieves the car data, then replaces it with the report. It uses JavaScript's `Promise` and `setTimeout` in `getCars` to simulate a delayed data fetch, and `filter`, `map`, and `join` in `generateReport` to process the data. The HTML `<pre>` element renders the formatted output.

AI-generated description

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

MIT Licensed

Similar vizzes