Naming improvement

`str` is used in the example too.
This commit is contained in:
Mojtaba Javan 2018-12-27 06:20:25 +03:30 committed by GitHub
parent b688652d34
commit 4e5aef8b1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -477,7 +477,7 @@ alert( str.split('') ); // t,e,s,t
``` ```
```` ````
The call [arr.join(str)](mdn:js/Array/join) does the reverse to `split`. It creates a string of `arr` items glued by `str` between them. The call [arr.join(separator)](mdn:js/Array/join) does the reverse to `split`. It creates a string of `arr` items glued by `separator` between them.
For instance: For instance: