🌍 Public
Viewing a saved revision (read-only)
20c322649f8c4f9ab5698c0be666327c
cars report
This example displays a text-based report of cars priced under $2,000, generated from an embedded JSON dataset. It uses a simulated asynchronous fetch (`getCars`) with a two-second delay, then filters and formats the data using `Array.filter`, `Array.map`, and a custom `formatCar` function. The output is rendered into an HTML `<pre>` element via the Document Object Model. The visualization demonstrates a loading state ("Loading ...") before the final list of car descriptions appears.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.