Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Report

Public visualization

Viewing a saved revision (read-only)

a23ef0a9a7ee4139bb9644253b9f8a5a

Cars Report

0 stars0🌍 Public
MMithun Ghosh
Last edited Nov 22, 2020
Created on Nov 22, 2020
Forked from Cars Report

This example demonstrates a text-based report of used cars, filtering the dataset to show only vehicles priced under $3,000 and formatting each entry as a single line with year, make, model, and price. It uses JavaScript modules to separate data handling, formatting, and report generation, with the `cars` array parsed from a JSON string and exported for reuse. The `generateReport` function chains `filter`, `map`, and `join` to produce the output, which is then inserted into the DOM via `textContent` in an HTML page.

AI-generated description

An example tutorial of how to use JavaScript objects, arrays, and modules.