Car Report
✓ Published0🌍 Public
This example displays a single car listing from a small embedded dataset. The interface shows the vehicle’s year, make, model, and price as plain text within an HTML `<pre>` element. The code imports car objects from `cars.js`, formats each entry using a template literal, and then renders the first car’s details via `document.getElementById` and `textContent`. The example relies on JavaScript array methods (`filter`, `map`, `join`) and JSON parsing, though only the first formatted record appears on screen.
AI-generated descriptionMIT Licensed