Cars Report
✓ Published0🌍 Public
The visualization shows a text-based report of used cars filtered by price, listing each vehicle as a line with year, make, model, and price. It demonstrates modular JavaScript organization: the cars dataset is parsed from an embedded JSON string in `cars.js`, while `formatCars.js` and `generateReport.js` handle per-car formatting and filtering, respectively. The main `index.js` calls `generateReport(cars, 3000)` to select cars under $3,000 and writes the result into a `<pre>` element using the DOM API. The example relies on native ES modules, destructuring, and array methods like `filter` and `map`.
AI-generated descriptionAn example tutorial of how to use JavaScript objects, arrays, and modules.
MIT Licensed