🌍 Public
Viewing a saved revision (read-only)
1d8593aa194043728b39a60cd8e23075
Cars Report
This example demonstrates a text-based car report generated from an in-memory dataset. It shows how asynchronous data retrieval, filtering, and string formatting combine to display a list of vehicles priced under $2,000. The code uses `JSON.parse` to load hardcoded car data, a `Promise` with `setTimeout` to simulate a delayed API call, and template literals in `formatCar` to compose each line. The final report is rendered into a `<pre>` element via the DOM API, replacing an initial loading message.
AI-generated descriptionAn example of how to use object, arrays, and modules.