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
FFabio Tejedor
Last edited Jan 26, 2021
Created on Jan 26, 2021
Forked from Cars Report

This example demonstrates a JavaScript function that filters a hardcoded array of car objects—each containing year, make, model, and price—to list only vehicles priced under a specified maximum. The workflow uses `JSON.parse` on an embedded JSON string, asynchronously retrieves the data via a custom `Promise` with a two-second delay, and displays the formatted output in an HTML `<pre>` element. The code relies on `import`/`export` modules to separate data retrieval, formatting, and report generation logic.

AI-generated description

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

Comments

Sign in to join the discussion.

MIT Licensed