Skip to main content
100%

Cars Report

✓ Published0🌍 Public
Jjfgiraldo3421
Last edited Sep 28, 2019
Created on Sep 28, 2019
Forked from Cars Report

This example demonstrates a simple text-based report of used cars, showing the year, make, model, and price for each vehicle priced under $2,000. It simulates an asynchronous data fetch with a two-second delay, then filters and formats the data using JavaScript modules and array methods. The visualization relies on Promises (`getCars`), the `filter` and `map` array operations, and template literals to generate the output, which is rendered directly into the HTML `<pre>` element. The data is hard-coded as a JSON string in the source code.

AI-generated description

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

MIT Licensed

Similar vizzes