Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

HTML Cars Report

Public visualization

HTML Cars Report

0 stars1🌍 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.

Comments

Sign in to join the discussion.

MIT Licensed