Skip to content

Commit 7c7d96f

Browse files
committed
updated readme file
1 parent 62824b0 commit 7c7d96f

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ Let's unveil the "mysteries":
208208
* After that <font color="red" >.join()</font> is called on reversed array to form a whole string.
209209
<br>
210210
211+
211212
2. Looping Through and Comparing Characters:
212213
213214
```js
@@ -227,14 +228,14 @@ Let's unveil the "mysteries":
227228
228229
```js
229230
function palindromeChecker(text) {
230-
var textLen = text.length;
231+
var textLen = text.length;
231232
for (var i = 0; i < textLen/2; i++) {
232233
if (text[i] !== text[textLen - 1 - i]) {
233-
return false;
234-
}
235-
}
234+
return false;
235+
}
236+
}
236237
return true;
237-
}
238+
}
238239
```
239240
<hr>
240241
<hr>

0 commit comments

Comments
 (0)