🌍 Public
Viewing a saved revision (read-only)
6320b76652974742918e9ef2fa96bf6d
Cars Title
This example displays a report of cars filtered by price, showing each vehicle’s year, make, model, and cost as plain text lines. It takes an array of car objects embedded as JSON and processes them through a custom `generateReport` function, which uses `filter` to select cars under a price threshold and `map` to format each entry. The formatted strings are joined with newlines and inserted into the page via `textContent`. The code imports and exports data and logic across modules, with `formatCar` defining the output template.
AI-generated description