Fix initialize-array-with-values.md
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
### Initialize array with values
|
||||
|
||||
Use `Array(n)` to create an array of the desired length, `fill(v)` to fill it with the desired value.
|
||||
Use `Array(n)` to create an array of the desired length, `fill(v)` to fill it with the desired values.
|
||||
You can omit `v` to use a default value of `0`.
|
||||
|
||||
```js
|
||||
Reference in New Issue
Block a user