Generation

generate functionWed, 16 Nov 2022

using recursion find if input is a palindrome regardless of capitalisation

function checkPalindrome(inputString) { const reverseString = inputString.split('').reverse().join(''); return inputString.toLowerCase() === reverseString.toLowerCase(); }

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant