🌍 Public
Viewing a saved revision (read-only)
3a84887286cd4067b3b6c566e4340498
Cars Report
This example shows a list of cars that costs less than $2,000, rendered as a text report on a webpage. It demonstrates how to use JavaScript modules and asynchronous data handling to generate a text-based visualization. The code uses `JSON.parse` to process embedded car data, a `Promise` to simulate a delayed data fetch, and exports functions like `formatCar` and `generateReport` to filter and format the output. The result is displayed in an HTML `<pre>` element.
AI-generated descriptionAn example tutorial of how to use JavaScript objects, arrays, and modules.