Cars Report
✓ Published0🌍 Public
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 descriptionAn example tutorial of how to use JavaScript objects, arrays, and modules.
MIT Licensed