Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Cars Report

Public visualization

Fork of Cars Report

0 stars0🌍 Public
Mmp7090
Last edited Feb 7, 2021
Created on Feb 7, 2021
Forked from Cars Report

This example demonstrates how to generate a text-based car report using JavaScript modules and asynchronous data loading. It defines car objects in a JSON array and uses functions to filter cars below a specified price (2000) and format them into readable lines. The code initializes a “Loading...” message, fetches data via a Promise-based `getCars` function with a two-second delay, then displays the filtered report. It relies on ES6 modules (`import`/`export`), `JSON.parse`, and DOM manipulation through `document.getElementById` and `textContent`.

AI-generated description

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

Comments

Sign in to join the discussion.

MIT Licensed