Skip to main content
100%

Cars Report

✓ Published0🌍 Public
Jjhofang
Last edited Dec 25, 2019
Created on Dec 25, 2019
Forked from Cars Report

This example demonstrates a simple asynchronous data-loading workflow that displays a filtered list of cars under a specified price. It shows how JavaScript ES modules, Promises, and array methods like `filter` and `map` combine to generate a text report. The app uses `getCars()` with a `setTimeout` to simulate fetching hardcoded JSON data, then `generateReport` formats each car into a year-make-model-price string. The final output is rendered into a `<pre>` element using the DOM API `textContent`, with a loading message shown initially.

AI-generated description

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

MIT Licensed

Similar vizzes