Answers for "array.fill() in javascript"

0

array.fill() in javascript

var arry = ["JavaScript", "Fill", "this", "Array"];
arry.fill("Filled", 1, 3);

console.log(arry);
//Output: [‘JavaScript’, ‘Filled’, ‘Filled’, 'Array’]
Posted by: Guest on September-23-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language