t1a11 — JavaScript Arrays by Innes
JavaScript Array reference (MDN)
Example Working Array code
Number of names to show (0–5):
...
You can do more arrays that do different things, hopefully some with numbers.
Example 2: Number Array
This example adds all the numbers in an array.
Number results appear here...
Example 3: Find the Largest Number
This example searches an array to find its largest number.
Largest number appears here...
Example 4: Add an Entry to an Array
This example uses push() to add a new item to an array.
Updated array appears here...
Challenge
Change the names in the first array, then add a button that removes the last entry with pop(). What happens to the array length?
\n