Cars Report
✓ Published0🌍 Public
This visualization displays a text-based report of cars with prices under $2,000, initially showing a “Loading…” message. It fetches a hardcoded JSON array of five car objects using a Promise with a 2-second delay (`getCars`), filters those below the price threshold, and formats each entry via `formatCar` into a "year make model: $price" line. The final output is rendered into a `<pre>` element in HTML using `document.getElementById` and `textContent`, with logic split into `generateReport` and modular imports. It demonstrates asynchronous data handling and string transformation without charting libraries.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed