🌍 Public
Viewing a saved revision (read-only)
06f8e1cbf4324bf5aa3c43f5f7c070b5
Cars Report
This example demonstrates a text-based report of used cars, filtering a dataset of five vehicles by price and formatting each entry into a readable string. The code parses embedded JSON data using `JSON.parse`, applies a filter to exclude cars above a maximum price, and maps each car object to a formatted line with `formatCar`. The resulting report is rendered in a large font within an HTML `<pre>` element, styled with CSS, and assembled through JavaScript modules that export and import functions.
AI-generated descriptionAn example showing object, arrays, and modules !