begin
This example demonstrates a simple web page that displays a JavaScript array of values, including numbers, strings, booleans, and results from function calls, directly in the browser. The page uses the HTML `pre` element and the DOM API `document.getElementById` to set its text content. The JavaScript code defines and invokes several functions, including arrow functions and a standard function with conditional logic, to compute results shown on the page. The accompanying `index2.html` displays a separate static message using the same DOM method.