🌍 Public
Viewing a saved revision (read-only)
325c31fea2404209944d155adef15da6
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 !