Language GuideBuilt-in TypesArrayMethodsfillOn this pagefillOverwrite each element with the given value. [1,2,3].fill("hello"); // ["hello", "hello", "hello"] Syntax fill(value) Returns A copy of the array. Notes Modifies the array in-place.