0
Q:

array fill

    var numeroPerguntas = 5;     
    var anyBoxesChecked = new Array(numeroPerguntas).fill(false);
    console.log(anyBoxesChecked);
1
let filledArray = new Array(10).fill({'hello':'goodbye'});
0
new Array(5).fill('element')
// ["element", "element", "element", "element", "element"]
1

New to Communities?

Join the community