Cars Report
✓ Published1🌍 Public
This example demonstrates a simple text-based car report. The page initially displays “loading…” and then, after a 10-second delay, renders a formatted list of cars priced under a given maximum. The report formats each vehicle as “year make model : $price” using data from a hardcoded JSON array. The code relies on JavaScript modules, the `Promise` API with `setTimeout`, and uses `Array.filter`, `Array.map`, and `Array.join` to generate the final output, which is inserted into the DOM via `textContent`.
AI-generated descriptionA sample to use Javascript arrays, objects, and modules.
MIT Licensed