Skip to main content
100%

Cars Report

✓ Published0🌍 Public
LLyncoln
Last edited Jan 21, 2020
Created on Jan 21, 2020
Forked from HTML Starter

This example demonstrates a simple text-based report of car listings, filtering results by price and formatting each entry as a single line with the year, make, model, and cost. The page initially displays “Loading,” then renders the report after a simulated two-second delay using a Promise from the `getCars` function. Built with React and vanilla JavaScript, it relies on the `formatCar` and `generateReport` modules, and updates the DOM by setting the `textContent` of a pre-existing `<pre>` element. The data originates from a hardcoded JSON array parsed via `JSON.parse`.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes