🌍 Public
Viewing a saved revision (read-only)
c007b704def140afbdc72a41e20c7124
Cars Report
This example displays the make of the first car in a small inline JSON dataset. It demonstrates asynchronous data loading and DOM updates, using a custom `GetCars` function that returns a Promise resolving after a two-second delay. The page initially shows “loading…” via direct textContent assignment, then replaces it with “Honda” once the data resolves. The code uses ES6 modules, a template literal for JSON, and the `getElementById` API to interact with the DOM.
AI-generated descriptionAn example showing the capabilities of VizHub.