Skip to main content
100%

Marcus Car Report

✓ Published0🌍 Public
Mms-aus
Last edited Aug 17, 2019
Created on Aug 16, 2019
Forked from Hello VizHub

This example demonstrates a simple text-based report that filters a local car database by year and displays the results in the browser. It shows how JavaScript modules, Promises, and DOM manipulation can create a dynamic, data-driven view. The code uses `getCars()` to asynchronously load a hardcoded JSON array of cars via a simulated 2-second delay, then `generateCarReport(cars, 1998)` filters cars with a year below 1998 and formats each entry using `formatCars`, which outputs a string like `1996 Toyota: $2800`. The final report is injected into a `<pre>` element styled with CSS, while the page initially shows "Working.." during the wait. The styling uses the Ubuntu font from Google Fonts and a dark blue background.

AI-generated description

Marcus' first Javascript module

MIT Licensed

Similar vizzes