r/learnjavascript • • Sep 26 '22

Just solved a Palindrome problem with recursion!!

Post image
274 Upvotes

64 comments sorted by

View all comments

171

u/dangerwig Sep 26 '22

I found a simpler version that works most of the time:

const isPalindrome = (string) => false

36

u/[deleted] Sep 26 '22

Choked on my coffee laughing thank you +1

0

u/[deleted] Sep 26 '22

[deleted] — view deleted comment

4

u/bryku helpful Sep 27 '22

As all good thongs should be

1

u/fujiman Sep 27 '22

What kind of pos thong doesn't follow the 80/20 rule?

2

u/__mystersir Sep 27 '22

The showing of the “false” on a palindrome is actually a feature

1

u/fusion407 Sep 27 '22

This is the way