🌍 Public
Viewing a saved revision (read-only)
84ed101187894a909ced7bac4d2f3307
Cars Report
This example shows a plain-text report of five cars, listing each vehicle’s year, brand, model, and price, filtered to include only those priced under $2,000. The report is generated from an embedded JSON array parsed with `JSON.parse`, then processed through `Array.filter`, `Array.map`, and `Array.join` to produce formatted lines. The result is displayed inside a `<pre>` element by setting `textContent` via the DOM API, using a custom `formatCar` utility to assemble each line.
AI-generated description