Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Report

Public visualization

Viewing a saved revision (read-only)

f9b39ee66d024f92a2556c8a8c086526

Cars Report

0 stars0🌍 Public
Pphaml5
Last edited Mar 31, 2020
Created on Mar 31, 2020
Forked from Cars Report

This example demonstrates a simple text-based report of used cars, filtering a hardcoded JSON dataset by price and displaying matching entries. The interface shows a loading message before asynchronously fetching the data using a Promise and setTimeout in `getCars.js`. The report is generated with `generateReport` and `formatCar` modules, which use destructuring and template literals to format each car’s year, make, model, and price. The final output is rendered into a `<pre>` element, with all logic orchestrated through ES6 imports and exports.

AI-generated description

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