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.
1 parent 62824b0 commit 7c7d96fCopy full SHA for 7c7d96f
README.md
@@ -208,6 +208,7 @@ Let's unveil the "mysteries":
208
* After that <font color="red" >.join()</font> is called on reversed array to form a whole string.
209
<br>
210
211
+
212
2. Looping Through and Comparing Characters:
213
214
```js
@@ -227,14 +228,14 @@ Let's unveil the "mysteries":
227
228
229
230
function palindromeChecker(text) {
- var textLen = text.length;
231
+ var textLen = text.length;
232
for (var i = 0; i < textLen/2; i++) {
233
if (text[i] !== text[textLen - 1 - i]) {
- return false;
234
- }
235
+ return false;
+ }
236
237
return true;
-}
238
239
```
240
<hr>
241
0 commit comments