how to fill false into array javascript
var numeroPerguntas = 5;
var anyBoxesChecked = new Array(numeroPerguntas).fill(false);
console.log(anyBoxesChecked);
how to fill false into array javascript
var numeroPerguntas = 5;
var anyBoxesChecked = new Array(numeroPerguntas).fill(false);
console.log(anyBoxesChecked);
fill array with values javascript
let filledArray = new Array(10).fill({'hello':'goodbye'});
array fill
new Array(5).fill('element')
// ["element", "element", "element", "element", "element"]
javascript fill array
const fill = new Array(5).fill(0)
console.log(fill) // [ 0,0,0,0,0]
js create array with default value
Array(24).fill(0)
array.fill() in javascript
var arry = ["JavaScript", "Fill", "this", "Array"];
arry.fill("Filled", 1, 3);
console.log(arry);
//Output: [‘JavaScript’, ‘Filled’, ‘Filled’, 'Array’]
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us