Cars Report
✓ Published1🌍 Public
This example displays a simple text report of used cars priced under $2,000, generated from a local JSON array. It shows how to parse the data with `JSON.parse`, filter and map it using array methods, and format each entry with a template literal. The `generateReport` function returns a newline-separated string, which is inserted into the page via `document.getElementById`. The code demonstrates modular JavaScript with `export` and `import` statements, and uses a Promise with `setTimeout` in one module to simulate asynchronous data fetching.
AI-generated descriptionAn example tutorial of how to use JavaScript objects, arrays, and modules.
MIT Licensed