Skip to main content
100%

Cars Report

✓ Published0🌍 Public
KKaavya Lakshmanan
Last edited Jan 9, 2020
Created on Jan 9, 2020
Forked from HTML Starter

This example shows a formatted text report of cars filtered by price. It displays a loading message, then fetches a hardcoded JSON dataset of five cars via a simulated network request using Promises. The report lists each car’s year, make, model, and price for those under $2,000, generated with a custom `formatCar` function and `generateReport` that filters and maps the array. The React-based code uses native JavaScript array methods and string concatenation, writing results into an HTML `<pre>` element via `textContent`.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes