Skip to content

Commit d301ed6

Browse files
authored
Merge pull request FrontendFreaks#2 from Avishek-kr/patch-1
Q1. the output should be 11.
2 parents 94d4a8a + a5377fd commit d301ed6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Array/Polyfill.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ const longestWordLength = words.reduce((maxLength, word) => {
123123
return currentLength > maxLength ? currentLength : maxLength;
124124
}, 0);
125125

126-
console.log(longestWordLength); // Output: 12
126+
console.log(longestWordLength); // Output: 11
127127
```
128128

129129
### Question 2: Find the longest word
@@ -192,4 +192,4 @@ const books = [
192192
const strings = ['hello world', 'i am openai', 'welcome to javascript'];
193193

194194
// Expected Output: ['Hello World', 'I Am Openai', 'Welcome To Javascript']
195-
```
195+
```

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy