JavaScript, Javascript Tips, Interview Questions, Datastrucutre, Javascript Interview.
whether a string, word, or number is a palindrome? Examples of palindromic words are: race car, sir. const isPlaindrome = (inputChar) => { let str = inputChar.toString(); let resultWord = ''; for(let i=str.length-1; i>=0; i--) { resultWord += str[i]; } return (resultWord == str) ? true : false; }