📜  javascript代码示例中的array.fill()

📅  最后修改于: 2022-03-11 15:03:58.945000             🧑  作者: Mango

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

console.log(arry);
//Output: [‘JavaScript’, ‘Filled’, ‘Filled’, 'Array’]