From 96eb404546c252328f52c972fa1e3ea873b68cce Mon Sep 17 00:00:00 2001 From: Max Date: Fri, 14 Aug 2026 13:46:00 -0400 Subject: [PATCH] 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. --- 1-js/05-data-types/05-array-methods/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/05-data-types/05-array-methods/article.md b/1-js/05-data-types/05-array-methods/article.md index 8536459582..e256089add 100644 --- a/1-js/05-data-types/05-array-methods/article.md +++ b/1-js/05-data-types/05-array-methods/article.md @@ -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"