how to fill false into array javascript
snippet in javascript

how to fill false into array javascript

user3369

    var numeroPerguntas = 5;     
    var anyBoxesChecked = new Array(numeroPerguntas).fill(false);
    console.log(anyBoxesChecked);