Cars Report
✓ Published1🌍 Public
This example shows a text-based report of cars priced under £25,000, displaying each vehicle’s make, model, sale price, and retail price. The report uses a JavaScript module pipeline, importing car data from a JSON array via `JSON.parse`, filtering it with a custom `generateReport` function, and formatting each entry with a `formatCar` function. The final output is rendered into an HTML `<pre>` element using `textContent`. It demonstrates foundational JavaScript data handling, array methods, and module imports without relying on external libraries.
AI-generated descriptionI've been learning how to use JavaScript objects, arrays, and modules to formulate a report on car prices that are less than £25,000.
MIT Licensed