Skip to main content
100%

Fork of Cars Report

✓ Published0🌍 Public
AAbdouEnsaj
Last edited Jul 25, 2022
Created on Jul 25, 2022
Forked from Cars Report

This example demonstrates a JavaScript module pipeline that fetches car data and displays a filtered text report. It shows a list of vehicles priced under $2,000, formatted with year, make, model, and price. The code uses `getCars()` with a `Promise` and simulated delay to return `JSON.parse` data, then applies `generateReport()` with `filter()` and `map()` to format entries via `formatCar`. Results appear in an HTML `<pre>` element, with `Loading...` shown initially until the asynchronous data arrives.

AI-generated description

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

MIT Licensed

Similar vizzes