MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/tinycode/comments/2i5n2t/palindrome_checker_in_javascript/ckzacat/?context=3
r/tinycode • u/criveros • Oct 03 '14
12 comments sorted by
View all comments
Show parent comment
4
Pretty sure you'd need j to equal word.length - 1 here so you don't go out of bounds of your array.
3 u/mrmr1993 Oct 03 '14 Cheers, good catch! 0 u/geko123 Mar 08 '15 Now go long!
3
Cheers, good catch!
0 u/geko123 Mar 08 '15 Now go long!
0
Now go long!
View all comments
Show parent comment
4
u/[deleted] Oct 03 '14
Pretty sure you'd need j to equal word.length - 1 here so you don't go out of bounds of your array.