Skip to main content
100%

Cars Report

✓ Published0🌍 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

MIT Licensed

Similar vizzes