Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Report

Public visualization

Cars Report

1 star0🌍 Public
RRita O'Rourke
Last edited Dec 1, 2020
Created on Dec 1, 2020
Forked from HTML Starter

This example displays a filtered car report in a plain-text format, showing only vehicles priced below a specified maximum. A list of five cars with year, make, model, and price is defined as JSON and parsed from a string. The code uses JavaScript array methods `filter`, `map`, and `join` to generate the report, and the result is inserted into a `<pre>` element via the Document Object Model’s `getElementById` and `textContent`. The report format is built with template literals.

AI-generated description

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

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed