Skip to main content
100%

Cars Report

✓ Published1🌍 Public
Qqueentrudi
Last edited Mar 26, 2019
Created on Mar 26, 2019
Forked from Cars Report

This example displays a plain-text report of cars priced under $2,000, formatted as a multi-line list using the browser’s `<pre>` element. It demonstrates ES6 module imports, array filtering with `.filter()`, and mapping with `.map()` to transform each car object into a readable string via `formatCar`. The data is embedded as JSON within `cars.js` and parsed with `JSON.parse`, while the final message is set through the DOM API `document.getElementById().textContent`. Styling uses a custom Ubuntu font and dark background via CSS.

AI-generated description

This is a description using Markdown.

MIT Licensed

Similar vizzes