Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Title

Public visualization

Cars Title

0 stars0🌍 Public
Iiamcshekar
Last edited Dec 24, 2019
Created on Dec 24, 2019
Forked from HTML Starter

This example displays a report of cars filtered by price, showing each vehicle’s year, make, model, and cost as plain text lines. It takes an array of car objects embedded as JSON and processes them through a custom `generateReport` function, which uses `filter` to select cars under a price threshold and `map` to format each entry. The formatted strings are joined with newlines and inserted into the page via `textContent`. The code imports and exports data and logic across modules, with `formatCar` defining the output template.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed