Skip to main content
100%

Javascript Modules: Cars Report

✓ Published0🌍 Public
Bbkopruluoglu3
Last edited Sep 6, 2023
Created on Dec 24, 2022
Forked from Cars Report

A demonstration of JavaScript modules organizing a small data pipeline that filters a hardcoded JSON array of five used cars by price and formats each result as a text line with make, model, year, and price. The example uses ES6 `import`/`export` statements across `format.js`, `getCars.js`, and `generateReport.js` to separate parsing, formatting, and report generation, with `index.js` as the entry point. Output is rendered into a `<pre>` element via `document.getElementById().textContent`.

AI-generated description

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

MIT Licensed

Similar vizzes