ruju11235 / csp

Small programs using the JavaScript syntax. I'm just starting to learn :)
0 stars 1 forks source link

Write a function to determine if the given string is a palindrome #13

Open kedarmhaswade opened 6 days ago

kedarmhaswade commented 6 days ago

A palindrome (or palindromic string) is the same forward and backward. For example, the strings "racecar", "madam", and "reappear" are palindromic, whereas "madame", "dared", and "batt ab" aren't.

Write a function that returns true if the given (string) argument is palindromic, false otherwise.

kedarmhaswade commented 6 days ago

As always, you can write both the recursive and nonrecursive versions.

ruju11235 commented 4 days ago

Reappear is not a palindrome :)