🌍 Public
Viewing a saved revision (read-only)
8e15d716b7814dc7af632b511efe9178
Cars report
This example displays a text-based report of cars priced under $2,500, listing each vehicle’s year, make, model, and price from a hardcoded JSON array. It demonstrates JavaScript module usage and asynchronous data handling, using `getCars()` with a simulated two-second delay, `generateReport()` to filter and format entries, and `formatCar()` for string output. The `index.html` shows the result in a `<pre>` element via DOM manipulation in `index.js`.
AI-generated descriptionAn example to work with javascript and modules.