showing results for - "how to check palindrome in javascript for lowercase and uppercase"
Brayan
24 Nov 2020
1function palindrome(str) {
2  var re = /[\W_]/g;
3  var lowRegStr = str.toLowerCase().replace(re, '');
4  var reverseStr = lowRegStr.split('').reverse().join(''); 
5  return reverseStr === lowRegStr;
6}
7palindrome("A man, a plan, a canal. Panama");
queries leading to this page
palindrome js checkcheck if palindrome jsgiven the string check if it is a palindrome javascripthow to check a sentence is palindrome or not in javascriptpalindrome javascriptcheck for palindrome javascriptpalindrome without reverse and regexpalindrome in javascriptpalindrome checker in javascriptjavascript given an input determine if palindrome or notjavascript palindromic substringhow to compare and see if a number is palindrome javascriptpalindrome numbers javascriptcheckpalindrome jsjavascript program to check for palindrome numbercheck for a palindrome in javascript without stringscase sensitive palindrome in jspalendrome finder javascriptwrite a function to check palindrome in jsloop half string to check palindrome javascripthow to determine if a string is a palindrome using recursion javascriptwrite a function that determines a palindrome javascriptpalindrome js solutionjs palindromepalindrome checker en jspalindrome string javascript w3schoolshow to check if a string is a palindrome in javascriptsimple palindrome checker in javascriftpalindrome number javascriptefficient palindrome algorithm javascriptjavascript code palindromepalindrome string jspalindrome solution javascriptcheck whether string is palindrome or not jvascriptjavascript check palindrome ignore punctuationjavascript program to check palindrome integercheck palindrome javascriptpalindrom jsjavascript palindrome questioncheck palindrome jspalindrome javasciptpalindrome numbers true jshow do you check if a given string is a palindrome in javascriptpalindromo js solvedjs palindrome stringjavascript check palindrome without punctuationpalindrome program in javascriptstring is palindrome or not javascripthow to check if a word is palindrome in javascriptpalindrome in jsalternative palindrome javascript string palindrome jsstring palindrome in jsjacvascript check palindromecheck if word is palindrome javascriptcheck if string is palindrom javascritpdetect palindrome javascriptstring palindrome js of lowercase 3 charactersis palindrome jshow to solve palindrome problem in javascriptis palindrome integer javascripthow to check palindrome in javascript for lowercase and uppercasehow to check for palindrome in javascriptpalindrome jsjavascript palindrome numberpalindrome string in javascriptapalindrome string in jspalindromos en javascriptpalindrome checker javascriptjavascript function that checks whether a passed string is palindrome or not 3f while palindrome javascripthow to write a function to check palindrome in jspalindrome function javascriptpalindrome number in javascriptstring js palindrome how to check palindrome in javascript for lowercase and uppercase