Skip to main content
100%

Cars Report

✓ Published0🌍 Public
AAbhijit Roy
Last edited May 15, 2020
Created on May 12, 2020
Forked from HTML Starter

This example shows a simple text-based report of cars under a specified price, displayed in a large-font preformatted area. It demonstrates working with JavaScript objects, arrays, modules, and Promises. The code uses `JSON.parse` on an inline car dataset, a `setTimeout`-based `getCars()` Promise to simulate async data, and `Array.filter` with `Array.map` to generate formatted lines via `formatCar`. The final report updates the DOM element’s textContent after a two-second delay.

AI-generated description

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

MIT Licensed

Similar vizzes