🌍 Public
Viewing a saved revision (read-only)
a5d824ac9d0f4e56811c827c2c5b9981
Cars Report
The Cars Report demonstrates a loading state followed by a text-based report of used cars priced under $2,000, generated from a hardcoded JSON array. It uses `getCars()` to return a Promise that resolves after a two-second delay, simulating an asynchronous API, and `generateReport()` to filter, format, and join car entries via `formatCar`. The page renders the output through the DOM API `textContent`, updating a `<pre>` element to display the final list.
AI-generated descriptionAn example tutorial of how to use JavaScript objects, arrays, and modules.