Cars Report
This example demonstrates a simple text-based report of car listings, showing filtered results based on a price threshold. It displays car details like year, make, model, and price for vehicles costing under $2,000, with a "Loading..." message shown while data is fetched. The code uses React, a Promise-based `getCars` function with a simulated 2-second delay, and JavaScript array methods like `filter`, `map`, and `join` to generate the report. Data is embedded as a JSON string in the script, and the output updates the DOM via `textContent`.