Fork of Cars Report
✓ Published0🌍 Public
This fork demonstrates a modular JavaScript approach to generating a text-based car report. It stores a hardcoded array of car objects in JSON, parses it with `JSON.parse`, and uses a Promise-based `getCars` function with a simulated 2-second delay. The `generateReport` function filters cars below a maximum price, maps them through `formatCar`, and joins the formatted strings with newlines. The page uses an `index.html` with a `pre` element, where the final output is rendered by setting `textCont` on that element.
AI-generated descriptionAn example tutorial of how to use JavaScript objects, arrays, and modules.
MIT Licensed