🌍 Public
Viewing a saved revision (read-only)
4fb7f3e5ea454bed8d919654c926d944
JS arrays
This example demonstrates how JavaScript arrays are built and logged to the browser console. The code defines a `range` function that uses a `for` loop to populate an array with numbers from a start value up to a stop value, stepping by a specified increment. It then calls this function with arguments (2, 5, 1) and outputs the result using `console.log`. The page is a minimal HTML structure with embedded JavaScript, showcasing basic array manipulation and iteration without any external libraries or frameworks.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.