Skip to main content
100%

Cars Report

✓ Published0🌍 Public
Mmpassarelli
Last edited Oct 21, 2020
Created on Oct 21, 2020
Forked from Cars Report

This example demonstrates a simple car report generator that filters a hardcoded JSON dataset of five cars by price and formats matching entries into a text list. The page initially shows “Loading…” briefly, then replaces it with the formatted report using the browser’s `document.getElementById` and `textContent` API. The code builds the report with JavaScript array methods (`filter`, `map`, `join`) and ES6 modules (`import`/`export`), while a simulated async `Promise` with `setTimeout` delays the data delivery. The current index.js overrides the logic with a static “Hello world” message, leaving the report functionality commented out.

AI-generated description

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

MIT Licensed

Similar vizzes