Skip to main content
100%

cars report

✓ Published1🌍 Public
Ggoshashi
Last edited May 15, 2020
Created on May 15, 2020
Forked from cars report

This example demonstrates a simple text-based report generated from a hardcoded JSON array of car objects, filtered by a minimum price and formatted into lines. The code uses React, though the rendering is a plain HTML `<pre>` element updated via `document.getElementById`. It defines `cars.js` with a JSON string parsed into an array, `formatcars.js` to format each car’s year, make, model, and price, and `generatereport.js` to filter and map the data. The final report is written to the page using the DOM API.

AI-generated description

An example to create modules, objects, arrays

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes