Change all snippets from var to const

This commit is contained in:
Jorge Gonzalez
2017-12-12 07:11:37 -05:00
parent 06aa1a7ec9
commit 98279117fa
33 changed files with 35 additions and 35 deletions

View File

@ -4,6 +4,6 @@ Use `Array(n)` to create an array of the desired length, `fill(v)` to fill it wi
You can omit `v` to use a default value of `0`.
```js
var initializeArray = (n, v = 0) =>
const initializeArray = (n, v = 0) =>
Array(n).fill(v);
```