Skip to main content
100%

Cars Report

✓ Published0🌍 Public
Ggonghewan
Last edited Jan 13, 2020
Created on Jan 13, 2020
Forked from Cars Report

This example shows a simple text-based report of used cars, listing each vehicle’s year, make, model, and price after a simulated two-second loading delay. The page displays a static “Loading...” message until a JavaScript Promise resolves with an in-memory JSON array of five cars. The code uses ES6 modules for exporting and importing functions, with `Array.filter` and `Array.map` to select cars under a price threshold and format them into a readable string. The final output is rendered into an HTML `<pre>` element via the DOM API.

AI-generated description

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

MIT Licensed

Similar vizzes