Skip to main content
100%

HTML Cars Report

✓ Published1🌍 Public
Aases1996
Last edited Mar 31, 2020
Created on Mar 31, 2020
Forked from Untitled

This example presents a list of used cars, showing the year, make, model, and price, with entries priced under $2,000 highlighted in red. The page initially displays a static, hardcoded list of three vehicles, while a JavaScript promise, created with `new Promise` and a `setTimeout`, simulates a two-second data fetch. After the delay, the code parses the embedded `carsJSON`, filters it by price, formats each entry into a string, and writes the result to a `<pre>` element. The project uses React's starter `bundle.js` and a plain CSS stylesheet for styling.

AI-generated description

React Starter code.

MIT Licensed

Similar vizzes