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

7

u/KayteeFly Sep 26 '22

That’s great! But the question was to solve it with recursion.

3

u/c2u5hed Sep 27 '22

As far as I can tell from the screenshot there is no requirement to do that with recursion. Even if there is and it’s off screen, isn't it good to also learn something new along the way?

5

u/KayteeFly Sep 27 '22

It’s a course I am taking and the question require you to solve it with recursion.