js array boolean code example
Example 1: how to fill false into array javascript
var numeroPerguntas = 5;
var anyBoxesChecked = new Array(numeroPerguntas).fill(false);
console.log(anyBoxesChecked);
Example 2: js find array return true false
['one', 'two'].some(item => item === 'one') // true
['one', 'two'].some(item => item === 'three') // false