Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix alert (arr) commented output
let arr = 'Bilbo, Gandalf, Nazgul, Saruman'.split(', ', 2); omits the space characters before each element. The correct output will not have spaces.
  • Loading branch information
Neutronjump authored Aug 14, 2026
commit 96eb404546c252328f52c972fa1e3ea873b68cce
2 changes: 1 addition & 1 deletion 1-js/05-data-types/05-array-methods/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ The `split` method has an optional second numeric argument -- a limit on the arr
```js run
let arr = 'Bilbo, Gandalf, Nazgul, Saruman'.split(', ', 2);

alert(arr); // Bilbo, Gandalf
alert(arr); // Bilbo,Gandalf
```

````smart header="Split into letters"
Expand Down