Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 471 Bytes

File metadata and controls

9 lines (6 loc) · 471 Bytes

practice-creating-arrays-2-Nathan-A

A JavaScript practice exercise demonstrating array initialization with the Array constructor, the .fill() method (including the start/end overload that updates a slice of slots), and populating an array with a for loop. The script runs three tasks: building a 7-slot array filled with "Hello", overwriting the first three slots with "Hi", and filling a 5-slot array with multiples of 10.

How to run

node index.js