Cars Report
This example displays a text-based report of affordable used cars, showing only the entries with a price under $2,000. It filters an embedded JavaScript array of car objects and formats each matching record into a single line containing the year, make, model, and price. The filtered results are joined with newlines and rendered inside a large `<pre>` element using the DOM API via `getElementById`. The code relies on standard JavaScript array methods, such as `filter`, `map`, and `join`, alongside the `formatCar` function for string composition, with the data and logic running entirely in the browser.