Skip to main content
100%

Cars Report

✓ Published0🌍 Public
HHeath Wilkinson
Last edited Jul 4, 2020
Created on Jul 3, 2020
Forked from Hello VizHub

This example displays a simple text-based report of cars, filtering the dataset to show only vehicles priced below $30,000 and formatting each entry with its year, make, model, and price. It uses JavaScript ES6 modules, with `JSON.parse` to load the car data from an inline array in `cars.js`, a `filter` method to select qualifying records, and a `map` with the `formatCar` function to generate the output. The final report is rendered into the DOM by setting the `textContent` of a pre element in `index.html`, with an imported `bundle.js` handling the logic.

AI-generated description

My dive into JS.

MIT Licensed

Similar vizzes