Skip to content

Commit 3bc7e14

Browse files
teddycaoajpiano
authored andcommitted
Fix error in example of Array#join with no arguments. Fixes jquery#251.
1 parent 2d71b5c commit 3bc7e14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

page/javascript-101/arrays.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ var wholeArray = myArray.concat( myOtherArray );
113113
var myArray = [ "hello", "world", "!" ];
114114
115115
console.log( myArray.join(" ") ); // "hello world !";
116-
console.log( myArray.join("") ); // "hello,world,!"
116+
console.log( myArray.join() ); // "hello,world,!"
117117
console.log( myArray.join("") ); // "helloworld!"
118118
console.log( myArray.join("!!") ); // "hello!!world!!!";
119119
```

0 commit comments

Comments
 (0)