Answers for "javascript preencher array com 0"

0

javascript preencher array com 0

const fill = new Array(5).fill(0)
console.log(fill) // [ 0,0,0,0,0]
Posted by: Guest on October-26-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language