Skip to main content
100%

Cars Report

✓ Published1🌍 Public
CChristina
Last edited Jun 16, 2020
Created on Jun 16, 2020
Forked from Cars Report

This example shows a plain-text car report generated from a hardcoded JSON array of five used cars. The page displays a loading message, then after a simulated two-second delay, lists cars priced under $3,000 with their year, make, model, and price. It demonstrates modular JavaScript using ES6 `import`/`export` for functions like `formatCar` and `generateReport`, with `Promise`-based asynchronous data fetching via `getCars`. The output is rendered directly into a `<pre>` element using `textContent`.

AI-generated description

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

MIT Licensed

Similar vizzes