🌍 Public
Viewing a saved revision (read-only)
2bef3c61b1fa4fc9be29d24df75518fb
Cars Report
The Cars Report example demonstrates asynchronous data loading and modular JavaScript by fetching a hardcoded JSON array of five used cars via a Promise-based `getCars()` function, then filtering and formatting the results with `generateReport()` and `formatCar()`. The final report, listing cars under $2,000 as text lines like "2009 Chevrolet Trailblazer :$ 1550", appears in an HTML `<pre>` element. The static SVG renders two geometric paths with black and red strokes, showing a basic Cairo-style pattern without dynamic data binding.
AI-generated descriptionAn example tutorial of how to use JavaScript objects, arrays and modules.