Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to fill false into array javascript

    var numeroPerguntas = 5;     
    var anyBoxesChecked = new Array(numeroPerguntas).fill(false);
    console.log(anyBoxesChecked);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #fill #false #array #javascript
ADD COMMENT
Topic
Name
6+3 =