Skip to main content
100%

Cars Report

✓ Published1🌍 Public
AA1L9E9X9
Last edited Oct 9, 2020
Created on Oct 9, 2020
Forked from Cars Report

This example shows a text-based report of cars filtered by price, displaying each car’s year, make, model, and cost. It begins with a loading message, then uses asynchronous data retrieval via a Promise returned by getCars, which parses embedded JSON. The generateReport function filters cars under a specified price and formats each entry using formatCar. The page uses a plain HTML <pre> element and updates its textContent through DOM manipulation.

AI-generated description

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

MIT Licensed

Similar vizzes