Cars Report - Part 4
This example displays a text-based report of cars priced under $2000, listing each vehicle’s year, make, model, and price. The code imports car data from `cars.js`, filters the array using JavaScript’s `.filter()`, formats each entry with a template literal, and joins the results into a single string. It then renders the output by setting the `textContent` property of a `pre` element in the HTML, using React as the framework. The report is generated directly from the hardcoded JSON data, with styling applied through inline CSS.