Car Report
✓ Published0🌍 Public
This example demonstrates a simple text-based car report rendered on a web page. It filters a hardcoded JSON array of car objects by price, formats each matching car into a single string, and displays the final report in a large font. The code uses the `JSON.parse` method to load the data, a custom `formatCar` function for string templating, and `Array.filter` and `Array.map` to process the cars. The report is output as plain text into a `<pre>` element via `document.getElementById`.
AI-generated descriptionAn example showing the capabilities of VizHub.
MIT Licensed