Skip to content

Commit

Permalink
Merge pull request Asabeneh#25 from npnjuguna/npnjuguna-static-values…
Browse files Browse the repository at this point in the history
…-with-fill-example-fix

static values with fill example fix
  • Loading branch information
Asabeneh authored Jan 6, 2020
2 parents 980c1e4 + 4f7583a commit dd35bb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 05_Day/05_day_arrays.md
Original file line number Diff line number Diff line change
Expand Up @@ -309,10 +309,10 @@ const eightXvalues = Array(8).fill('X') // it creates eight element values
console.log(eightXvalues) // ['X', 'X','X','X','X','X','X','X']

const eight0values = Array(8).fill(0) // it creates eight element values
console.log(eight0Values) // [0, 0, 0, 0, 0, 0, 0, 0]
console.log(eight0values) // [0, 0, 0, 0, 0, 0, 0, 0]

const four4values = Array(4).fill(4) // it creates 4 element values
console.log(four4Values) // [4, 4, 4, 4, 4, 4, 4, 4]
console.log(four4values) // [4, 4, 4, 4, 4, 4, 4, 4]
```

#### Concatenating array using concat
Expand Down

0 comments on commit dd35bb6

Please sign in to comment.