Skip to content

Commit e5d7ffa

Browse files
committed
updated readme file
1 parent 1da2ced commit e5d7ffa

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,17 @@ Let's unveil the "mysteries":
232232
}
233233
```
234234
235+
Let's review it:
236+
* First we convert the string to lowercase and after it we use <font color="red" >.split()</font> method
237+
238+
* We use special array method <font color="red" >.every()</font> to loop through array & perform our check. In fact,<font color="red" >.every()</font>
239+
method tests whether all elements pass the test or not which is implemented by provided function
240+
241+
* Here, provided function accepts two parameters: current letter and index. Read more about every function [here](https://www.geeksforgeeks.org/javascript-array-every-method/).
242+
243+
244+
245+
235246
3. Looping Through and Comparing Characters(Optimized):
236247

237248

0 commit comments

Comments
 (0)