🌍 Public
Viewing a saved revision (read-only)
26e4b7f751a8468581a1b185bfd17062
Cars Report
This example displays a report of cars priced under $2000, listing them by year, make, model, and price. It also shows a "Loading ..." message before the data appears. The code uses JavaScript objects, arrays, and modules, employing `Promise`, `setTimeout`, and `JSON.parse` to simulate an asynchronous data fetch. The report is generated via the `generateReport` function, which filters and maps car data, and is then displayed in a `<pre>` element.
AI-generated descriptionAn exemple tutorial of how to use JavaScript objects, arrays, and modules.