Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Report

Public visualization

Viewing a saved revision (read-only)

2bf194257e324216aee0ec70b51d6507

Cars Report

0 stars0🌍 Public
KKinjal-Goyani
Last edited Oct 21, 2022
Created on Oct 21, 2022
Forked from HTML Starter

This visualization displays a plain-text report of cars priced under $2,000, listing each vehicle’s year, make, model, and price on separate lines. It filters an inline JSON array of car objects, then maps each entry through a `formatCar` function and joins the results with newline characters. The final message is rendered as text content inside a `<pre>` element using the DOM API `document.getElementById`. The code uses native JavaScript methods `JSON.parse`, `filter`, `map`, and `join` to process the static dataset embedded directly in the script.

AI-generated description