Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Report

Public visualization

Viewing a saved revision (read-only)

4e061660fdbe48f39bc6fcf9a703ba3d

Cars Report

0 stars0🌍 Public
PPragati Porwal
Last edited Jul 11, 2021
Created on Jul 11, 2021
Forked from HTML Starter

The Cars Report demonstrates dynamic data formatting by loading a JSON array of car objects, filtering them by price, and rendering a text-based report onto a web page. It shows how JavaScript modules, array methods like `filter` and `map`, and template literals work together to transform raw data into readable output. The code uses the `JSON.parse` API via an embedded JSON string, the DOM `document.getElementById`, and `textContent` to update the page. The report lists each car's year, make, and price in the HTML `<pre>` element, displaying all entries under the specified price threshold.

AI-generated description

An example of how to use javascript objects, arrays and module