Cars Report
✓ Published0🌍 Public
This example demonstrates a plain-text report generator that filters a small inline dataset of cars by price and formats the results into a readable list. The interface is a single `<pre>` element with large styled text, populated by writing the generated report’s string content into the DOM via `document.getElementById().textContent`. The code uses ES6 modules to separate data parsing with `JSON.parse`, a `formatCar` helper for string templating, and a `generateReport` function that chains `filter` and `map` before joining lines. No external libraries are used, relying only on core JavaScript and HTML.
AI-generated descriptionAn example showing the capabilities of VizHub.
MIT Licensed