var arry = ["JavaScript", "Fill", "this", "Array"]; arry.fill("Filled", 1, 3); console.log(arry); //Output: [‘JavaScript’, ‘Filled’, ‘Filled’, 'Array’]