Skip to main content
100%

Fork of Cars Report

✓ Published0🌍 Public
JJuyeonee
Last edited Aug 8, 2021
Created on Aug 8, 2021
Forked from Cars Report

This example demonstrates a simple car-report generator using JavaScript objects, arrays, and asynchronous modules. It loads a hardcoded list of five car records via a `getCars()` promise, filters them by a maximum price of $2000, and displays the formatted results in an HTML `<pre>` element. The code uses ES6 modules (`import`/`export`), `JSON.parse`, and `setTimeout` to simulate a delayed data fetch. The final output lists matching cars with their year, make, model, and price.

AI-generated description

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

MIT Licensed

Similar vizzes