📜  如何将false填充到数组javascript代码示例中

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

代码示例1
var numeroPerguntas = 5;     
    var anyBoxesChecked = new Array(numeroPerguntas).fill(false);
    console.log(anyBoxesChecked);