Cars Report
✓ Published0🌍 Public
This example displays a list of cars priced under $2,000. The `generateReport` function filters the hard-coded car JSON data by price and formats each entry with the `formatCar` helper, producing lines like "2009 Ford F150: $1950". The resulting text is output into a `<pre>` element with a large font size using `document.getElementById` and `textContent`. The code uses JavaScript string manipulation and `JSON.parse` for data handling.
AI-generated descriptionMIT Licensed