I know it’s late but i found this efficient method to initialize array with Boolean values
var numeroPerguntas = 5;
var anyBoxesChecked = new Array(numeroPerguntas).fill(false);
console.log(anyBoxesChecked);
I know it’s late but i found this efficient method to initialize array with Boolean values
var numeroPerguntas = 5;
var anyBoxesChecked = new Array(numeroPerguntas).fill(false);
console.log(anyBoxesChecked);