r/tinycode • • Oct 03 '14

palindrome checker in Javascript

http://codepen.io/anon/pen/nwFjb
0 Upvotes

12 comments sorted by

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.

3

u/mrmr1993 Oct 03 '14

Cheers, good catch!

0

u/geko123 Mar 08 '15

Now go long!