Skip to main content
100%

Cars Report

✓ Published1🌍 Public
AAli Shah
Last edited Jan 22, 2020
Created on Jan 22, 2020
Forked from Cars Report

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 description

I'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

Similar vizzes