Identifies the type of array elements
The array to fill
Value to fill the array with
Optionalstart: numberStart index (inclusive), defaults to 0. Negative index counts from the end
Optionalend: numberEnd index (exclusive), defaults to array.length. Negative index counts from the end
The modified array
The arrFill() method changes all elements in an array to a static value, from a start index (default 0) to an end index (default array.length). It returns the modified array. This method mutates the array.