Skip to main content
100%

Cars Report

✓ Published0🌍 Public
Nnithya13
Last edited Jan 24, 2020
Created on Jan 24, 2020
Forked from Cars Report

This example demonstrates a simple text-based report of used cars, filtered by price and formatted into a readable list. It shows a loading message while fetching mock data asynchronously, then displays each car’s year, make, model, and price in a large <pre> element. The code uses native JavaScript modules and Promises, with `JSON.parse` to load inline data, `Array.prototype.filter` and `map` to process the list, and a custom `formatCar` function for output. The rendering relies on plain DOM manipulation via `document.getElementById` and `textContent`.

AI-generated description

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

MIT Licensed

Similar vizzes