Skip to main content
100%

Cars Report

✓ Published1🌍 Public
Ggauwow
Last edited Nov 14, 2019
Created on Nov 14, 2019
Forked from Cars Report

This example demonstrates how to assemble a plain-text car report by filtering a static JSON dataset of five vehicles to those priced under $2,000, then formatting each as a line with year, make, model, and price. It uses the native `fetch`-like Promise via `getCars` with a simulated delay, array methods `filter` and `map`, and a custom `formatCar` module. The page renders the result in a `<pre>` element, initially showing "Loading..." until the asynchronous data resolves.

AI-generated description

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

MIT Licensed

Similar vizzes