Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Report

Public visualization

Viewing a saved revision (read-only)

f41689ea2eba493aa45447d42d1e9073

Cars Report

0 stars0🌍 Public
Hhawjelly
Last edited Jul 17, 2020
Created on Jul 17, 2020
Forked from Cars Report

This example demonstrates how to generate a text-based car report from structured data. It uses JavaScript objects and arrays, with a `getCars` function that parses a JSON string to return an array of car objects. The `generateReport` module filters cars by price and formats each entry using the `formatCar` function, then displays the result in an HTML `<pre>` element via `textContent`. The code relies on ES modules and a Promise-based `getCars` call to load the data asynchronously.

AI-generated description

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