Skip to main content
100%

Fork of Cars Report

✓ Published0🌍 Public
Rrpadron8
Last edited Oct 6, 2021
Created on Oct 6, 2021
Forked from 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 description

An example tutorial of how to use JavaScript objects, arrays, and modules.

MIT Licensed

Similar vizzes