Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Report

Public visualization

Viewing a saved revision (read-only)

07949a5b2eea46d9840c1e86d28cfc07

Cars Report

0 stars0🌍 Public
YYanan Xin
Last edited Feb 23, 2020
Created on Feb 23, 2020
Forked from Cars Report

This example demonstrates a text-based report of car listings, filtering a hardcoded dataset of five cars to show only those priced under $2,000. The code imports car data from a JSON array and uses `filter`, `map`, and `join` to generate formatted lines like “2009 Ford F150: $1950”. It relies on ES6 modules, JavaScript promises, and the `setTimeout` API to simulate asynchronous loading, with the final report rendered into an HTML `<pre>` element. The page uses a simple script bundle and direct DOM text assignment.

AI-generated description

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