🌍 Public
Viewing a saved revision (read-only)
b370b83df3a4466fbb7d4cb7b95a2472
Fork of Cars Report
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.