Viewing a saved revision (read-only)
332ae404c9b54f0492a5517bb2c06509
Eloquent JS: Chapter 4 (take 2)
This example shows the console output from solving several exercises from Chapter 4 of Eloquent JavaScript, focusing on array manipulation functions. The code defines and tests a `range` function that generates numeric arrays, a `sum` function that totals array values, and two reversal functions: `reverseArray` which creates a new reversed array using `unshift`, and `reverseArrayInPlace` which mutates the original array by repeatedly unshifting elements. Written in vanilla JavaScript with no external libraries, the page uses `console.log` to print intermediate results and styled text via CSS.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.