🌍 Public
Viewing a saved revision (read-only)
87687bbe9f0e461297c0d77b3a543159
Cars Report
This example demonstrates a simple text-based car report that filters a hardcoded dataset of five cars by price and displays matching entries formatted as strings. It shows how JavaScript modules coordinate to load simulated asynchronous data and render output into an HTML page. The code uses `JSON.parse` to convert inline JSON data, a `Promise` with `setTimeout` to mimic a delayed data fetch, and ES6 module imports/exports to split logic into separate files. The final report appears in a `<pre>` element with a loading message shown first.
AI-generated descriptionAn example tutorial of how to use JavaScript objects, arrays, and modules.