Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Cars Report

Public visualization

Cars Report

0 stars1๐ŸŒ Public
SSantaends
Last edited Jan 27, 2022
Created on Jan 27, 2022
Forked from Cars Report

This example demonstrates a simple asynchronous report generator that filters a hardcoded JSON array of used cars by price and formats the results into a text list. It shows how JavaScript modules, promises, and array methods can create a dynamic message that appears after a simulated two-second delay. The code uses `JSON.parse`, `Promise`, `setTimeout`, `filter`, `map`, and `join`, with data stored in a static string in `getCars.js`. The final report is displayed in a `<pre>` element on an HTML page, styled with custom CSS that highlights one entry in red.

AI-generated description

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

Comments

Sign in to join the discussion.

MIT Licensed