Skip to main content
100%

Cars report

✓ Published0🌍 Public
Mmorjyooo
Last edited Aug 8, 2020
Created on Aug 8, 2020
Forked from Hello VizHub

This example displays a simple text report of cars, listing year, make, model, and price for each vehicle with a price under $5,000. The cars data is defined as a JSON string within the code and parsed with `JSON.parse`. The processing uses JavaScript's `filter` and `map` methods to select and format each car into a readable line, which is then injected into the page via `textContent`. The interface is built with React, using `react` and `react-dom` libraries, while the final output is rendered in a `<pre>` element.

AI-generated description

React Starter code.

MIT Licensed

Similar vizzes