Cars Report
✓ Published1🌍 Public
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 descriptionMIT Licensed