1 var numeroPerguntas = 5;
2 var anyBoxesChecked = new Array(numeroPerguntas).fill(false);
3 console.log(anyBoxesChecked);
1new Array(5).fill('element')
2// ["element", "element", "element", "element", "element"]
1var arry = ["JavaScript", "Fill", "this", "Array"];
2arry.fill("Filled", 1, 3);
3
4console.log(arry);
5//Output: [‘JavaScript’, ‘Filled’, ‘Filled’, 'Array’]
6