Skip to main content
100%

Fork of Cars Report

✓ Published0🌍 Public
Nnecat1
Last edited Jul 24, 2021
Created on Jul 24, 2021
Forked from Cars Report

This example demonstrates a car-report generator that filters a set of car listings by price and formats the results as text. It fetches JSON data from a `fetch` API call to a local server, then uses JavaScript array methods (`filter`, `map`, and `join`) to process and display the report. The code relies on custom modules (`formatCard` and `generateReport`) and a mock data promise (`getCars`) that simulates a delayed response. The final output is rendered into an HTML `<pre>` element.

AI-generated description

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

MIT Licensed

Similar vizzes