Cars Report
✓ Published0🌍 Public
This example demonstrates a text-based report of used cars, filtering entries under $2,000 and formatting each line with year, make, model, and price. The page initially shows “loading...” and then displays the car list after a simulated async delay. Code uses JavaScript modules with `import`/`export`, a `Promise` with `setTimeout` in `getCars`, and array methods like `filter`, `map`, and `join` to generate the output. Data comes from an embedded JSON string parsed with `JSON.parse`.
AI-generated descriptionAn example tutorial of how to use JavaScript objects, arrays and modules.
MIT Licensed