Skip to main content
100%

Cars Report

✓ Published0🌍 Public
Jjmmoser7
Last edited Feb 10, 2022
Created on Feb 10, 2022
Forked from HTML Starter

This example displays a report of used cars, filtering a small dataset to show only vehicles priced under $2000 and formatting each as a line of text. The code uses a React-free approach with plain JavaScript, parsing inline JSON data from `cars.js` and applying a `formatCar` function that constructs strings like “2012 Nissan Leaf: $1800.” The report is rendered into a `<pre>` element in the HTML page, with styling set via an inline `font-size` property. The visualization relies on standard array methods (`filter`, `map`, `join`) and DOM manipulation via `getElementById`.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes