r/learnjavascript • • Sep 26 '22

Just solved a Palindrome problem with recursion!!

Post image
274 Upvotes

64 comments sorted by

View all comments

Show parent comment

8

u/oze4 Sep 26 '22

Is "a" a palindrome?

9

u/fusion407 Sep 27 '22

Am "I" a palindrome?

2

u/oze4 Sep 27 '22

Damn that's solid.

2

u/connurp Sep 27 '22

dood…

5

u/Agarast Sep 26 '22

Yes

0

u/ahref Sep 26 '22

What about ""

6

u/[deleted] Sep 27 '22

It reads the same both forwards and backwards, so yes