🌍 Public
Viewing a saved revision (read-only)
631c968b1d3844639af6e1b7b7a84974
Example
This example shows the result of summing an array of numbers, displaying the output as a large heading. The code defines an `add` function and a `reduce` function to iterate over the list, accumulating the total. The result is then written to the page's HTML element using the DOM API `document.getElementById` and setting its `innerHTML`. The page's styling is applied through a linked CSS file.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.