🌍 Public
Viewing a saved revision (read-only)
055e1f5838b34a00b3a60ffb1e509cf1
Fork of 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 descriptionAn example tutorial of how to use JavaScript objects, arrays, and modules.