Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Cars Report

Public visualization

Cars Report

0 stars0🌍 Public
ZZachary Keller
Last edited Mar 22, 2020
Created on Mar 22, 2020
Forked from HTML Starter

This example shows how JavaScript objects, arrays, and modules can generate a text-based car report. After a simulated two-second delay from a Promise, it filters a hardcoded JSON array of five cars by price, formats each matching car’s year, make, model, and price, and displays the result as a multi-line string in the HTML page. The code uses ES6 module imports and exports, `Array.prototype.filter` and `map`, and template literals to transform the data.

AI-generated description

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

Comments

Sign in to join the discussion.

MIT Licensed