🌍 Public
Viewing a saved revision (read-only)
6e136750ecf547479d4e14db4ba49a94
Car Report
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 description