how to fill false into array javascript

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

Also in JavaScript: