We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 94d4a8a + a5377fd commit d301ed6Copy full SHA for d301ed6
Array/Polyfill.md
@@ -123,7 +123,7 @@ const longestWordLength = words.reduce((maxLength, word) => {
123
return currentLength > maxLength ? currentLength : maxLength;
124
}, 0);
125
126
-console.log(longestWordLength); // Output: 12
+console.log(longestWordLength); // Output: 11
127
```
128
129
### Question 2: Find the longest word
@@ -192,4 +192,4 @@ const books = [
192
const strings = ['hello world', 'i am openai', 'welcome to javascript'];
193
194
// Expected Output: ['Hello World', 'I Am Openai', 'Welcome To Javascript']
195
-```
+```
0 commit comments