|
|
|
@ -590,7 +590,7 @@ const arr = Array() // creates an an empty array
|
|
|
|
|
console.log(arr)
|
|
|
|
|
|
|
|
|
|
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'
|
|
|
|
|
console.log(eight0values) // [0, 0, 0, 0, 0, 0, 0, 0]
|
|
|
|
|