🌍 Public
Viewing a saved revision (read-only)
8819d2ff09104719b58421cef28ffe1f
Fork of Cars Report
This example demonstrates a data-processing pipeline for a car inventory report. It uses JavaScript arrays, objects, and promises to load car data from a hard-coded JSON string, filter the list by a maximum price, and format each matching record into a readable string. The final report (e.g., "2000 Honda Accord: $2800") is rendered inside an HTML `<pre>` element. The code relies on modern JavaScript features like destructuring, the `map` and `filter` array methods, an exported `Promise` (via `getCars`), and a module-based structure using `import`/`export` syntax.
AI-generated descriptionAn example tutorial of how to use JavaScript objects, arrays, and modules.