Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Report

Public visualization

Cars Report

0 stars0🌍 Public
AAdeola Oni
Last edited Apr 1, 2020
Created on Apr 1, 2020
Forked from HTML Starter

This example demonstrates a text-based report of used cars, filtering a hardcoded JSON array and displaying formatted entries under a price threshold. The page initially shows a “Loading...” message, then generates the report after a simulated two-second delay via a JavaScript Promise. It uses standard JavaScript object destructuring, array filtering, and the `map` and `join` methods to construct the output, which is rendered into a `<pre>` element with enlarged font size. The report omits any car priced at or above the $4,000 cutoff, showing only the year, make, model, and price for each qualifying vehicle.

AI-generated description

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

Comments

Sign in to join the discussion.

MIT Licensed