pull/407/merge
Ponttablazat 7 months ago committed by GitHub
commit bab91051ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -590,7 +590,7 @@ const arr = Array() // creates an an empty array
console.log(arr) console.log(arr)
const eightXvalues = Array(8).fill('X') // it creates eight element values filled with 'X' const eightXvalues = Array(8).fill('X') // it creates eight element values filled with 'X'
console.log(eightXvalues) // ['X', 'X','X','X','X','X','X','X'] console.log(eightXvalues) // ['X', 'X', 'X', 'X', 'X', 'X', 'X', 'X']
const eight0values = Array(8).fill(0) // it creates eight element values filled with '0' const eight0values = Array(8).fill(0) // it creates eight element values filled with '0'
console.log(eight0values) // [0, 0, 0, 0, 0, 0, 0, 0] console.log(eight0values) // [0, 0, 0, 0, 0, 0, 0, 0]

Loading…
Cancel
Save