Skip to main content
100%

Fork of Cars Report

✓ Published0🌍 Public
FFabio Tejedor
Last edited Jan 26, 2021
Created on Jan 26, 2021
Forked from Cars Report

This example demonstrates a JavaScript function that filters a hardcoded array of car objects—each containing year, make, model, and price—to list only vehicles priced under a specified maximum. The workflow uses `JSON.parse` on an embedded JSON string, asynchronously retrieves the data via a custom `Promise` with a two-second delay, and displays the formatted output in an HTML `<pre>` element. The code relies on `import`/`export` modules to separate data retrieval, formatting, and report generation logic.

AI-generated description

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

MIT Licensed

Similar vizzes