Fork of Cars Report
✓ Published0🌍 Public
This example demonstrates a simple report generator that filters a car listing by price and displays the results as formatted text. It uses asynchronous JavaScript with a Promise-based `getCars` function to simulate a two-second data delay, and a modular architecture with ES6 imports and exports across `getCars.js`, `generateReport.js`, and `formatCar.js`. The rendered output appears in an HTML `<pre>` element, showing each car as a line with year, make, model, and price, limited to vehicles under 2000 dollars.
AI-generated descriptionAn example tutorial of how to use JavaScript objects, arrays, and modules.
MIT Licensed