Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Report

Public visualization

Viewing a saved revision (read-only)

545b864acf4c4079941c47590a7849c9

Cars Report

0 stars0🌍 Public
CCarmen Torrecillas Molina
Last edited Jun 25, 2019
Created on Jun 24, 2019
Forked from Cars Report

This example demonstrates how to build a simple data report using JavaScript objects, arrays, and modules. It fetches car data from a local JSON array using a promise-based `getCars` function, then filters the cars by price and formats each entry with the `formatCar` function. The result is displayed as plain text in a `<pre>` element in the browser. The code uses ES6 module exports and imports, along with `JSON.parse` and `Promise` for asynchronous data handling.

AI-generated description

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