🌍 Public
Viewing a saved revision (read-only)
d587105197ec4732bd0c0951d7a79180
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