palindrome js

Solutions on MaxInterview for palindrome js by the best coders in the world

showing results for - "palindrome js"
Mirko
10 Feb 2019
1function palindrome(str) {
2
3    var len = str.length;
4    var mid = Math.floor(len/2);
5
6    for ( var i = 0; i < mid; i++ ) {
7        if (str[i] !== str[len - 1 - i]) {
8            return false;
9        }
10    }
11
12    return true;
13}
14
Dario
06 Oct 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");
Marie
25 Aug 2016
1function palindrome(str) {
2 var re = /[^A-Za-z0-9]/g;
3 str = str.toLowerCase().replace(re, '');
4 var len = str.length;
5 for (var i = 0; i < len/2; i++) {
6   if (str[i] !== str[len - 1 - i]) {
7       return false;
8   }
9 }
10 return true;
11}
12palindrome("A man, a plan, a canal. Panama");
Cedric
06 May 2016
1const palindrome = (str) => {
2  var text = str.replace(/[.,'!?\- \"]/g, "")
3  return text.search(
4    new RegExp(
5      text
6        .split("")
7        .reverse()
8        .join(""),
9      "i"
10    )
11  ) !== -1;
12}
13  
14//or
15function palindrome(str) {
16  let text = str.replace(/[.,'!?\- \"]/g, "").toUpperCase();
17  for (let i = 0; i > text.length/2; i++) {
18    if (text.charAt(i) !== text.charAt(text.length - 1 - i)) {
19      return false;
20    }
21  }
22  return true;
23}
24console.log(palindrome("Able was I, ere I saw elba.")); //logs 'true'
Alessio
29 Sep 2018
1function palindrome(str) {
2 // Step 1. The first part is the same as earlier
3 var re = /[^A-Za-z0-9]/g; // or var re = /[\W_]/g;
4 str = str.toLowerCase().replace(re, '');
5
6 // Step 2. Create the FOR loop
7 var len = str.length; // var len = "A man, a plan, a canal. Panama".length = 30
8 
9 for (var i = 0; i < len/2; i++) {
10   if (str[i] !== str[len - 1 - i]) { // As long as the characters from each part match, the FOR loop will go on
11       return false; // When the characters don't match anymore, false is returned and we exit the FOR loop
12   }
13   /* Here len/2 = 15
14      For each iteration: i = ?    i < len/2    i++    if(str[i] !== str[len - 1 - i])?
15      1st iteration:        0        yes         1     if(str[0] !== str[15 - 1 - 0])? => if("a"  !==  "a")? // false
16      2nd iteration:        1        yes         2     if(str[1] !== str[15 - 1 - 1])? => if("m"  !==  "m")? // false      
17      3rd iteration:        2        yes         3     if(str[2] !== str[15 - 1 - 2])? => if("a"  !==  "a")? // false  
18      4th iteration:        3        yes         4     if(str[3] !== str[15 - 1 - 3])? => if("n"  !==  "n")? // false  
19      5th iteration:        4        yes         5     if(str[4] !== str[15 - 1 - 4])? => if("a"  !==  "a")? // false
20      6th iteration:        5        yes         6     if(str[5] !== str[15 - 1 - 5])? => if("p"  !==  "p")? // false
21      7th iteration:        6        yes         7     if(str[6] !== str[15 - 1 - 6])? => if("l"  !==  "l")? // false
22      8th iteration:        7        yes         8     if(str[7] !== str[15 - 1 - 7])? => if("a"  !==  "a")? // false
23      9th iteration:        8        yes         9     if(str[8] !== str[15 - 1 - 8])? => if("n"  !==  "n")? // false
24     10th iteration:        9        yes        10     if(str[9] !== str[15 - 1 - 9])? => if("a"  !==  "a")? // false
25     11th iteration:       10        yes        11    if(str[10] !== str[15 - 1 - 10])? => if("c" !==  "c")? // false
26     12th iteration:       11        yes        12    if(str[11] !== str[15 - 1 - 11])? => if("a" !==  "a")? // false
27     13th iteration:       12        yes        13    if(str[12] !== str[15 - 1 - 12])? => if("n" !==  "n")? // false
28     14th iteration:       13        yes        14    if(str[13] !== str[15 - 1 - 13])? => if("a" !==  "a")? // false
29     15th iteration:       14        yes        15    if(str[14] !== str[15 - 1 - 14])? => if("l" !==  "l")? // false
30     16th iteration:       15        no               
31    End of the FOR Loop*/
32 }
33 return true; // Both parts are strictly equal, it returns true => The string is a palindrome
34}
35
36palindrome("A man, a plan, a canal. Panama");
Kale
07 Jun 2017
1function palindrome(str) {
2 var splitted = str.split("");
3 var reversed = splitted.reverse("");
4 var joined = reversed.join("");
5 return joined.toLowerCase().replace(/[^0-9a-z]/gi, '') == str.toLowerCase().replace(/[^0-9a-z]/gi, '')
6}
7
queries leading to this page
how to check if a string is a palindrome in javascriptjavascript palindromjs palindromhow to find palindromes in jshow to find palindrome string in javascriptpalindrome javscriptjavascript palindrome string programcheck if string is palindrome javascripfind palindrome in javascriptgiven the string check if it is a palindrome javascriptpalindrome javascript 2b edabitcheck palindrome string in javascriptpalindrome number check in javascripthow to check if string is pelindrome javascriptpalindrome javascript stackgithub palindrome javascriptfind the palindrome in a string javascriptjavascript function to check the string is palindromecheck whether a string is palindrome or not in javascriptjs code for finding palindromejavascript program to check for palindromewhile palindrome javascriptjavascript palindrome programfunction to check if a value is palindrome in jsvalid palindrome javascript walkthroughjs check palindromejavascript string palindromereturn all the palindromes in an array javascriptjavascript check palindromepalindrome check using javascriptjs palindrome of a namepalindrome js numberjavascript find palindromecheckpalindrome jscase sensitive palindrome in jspalidrome javascriptsimple palindrome program in javascriptwrite a function to check palindrome in jshow to do palindrome in javascriptpalindrome javascript programjavascript while loop palindromehow to print palindrome in javascriptwhile loop to check palindrome javascripthow to check if number is palindrome javascriptpalindrom numbers javascriptjs check if string is pallendrompalindrome logic in javascriptpalindrome javascript functionpoliondrome function javascriptprogram to find occurrences of palindrome words in string using javascriptpalindrome check in java scriptispalindrome js using loophow to solve palindrome problem in javascriptto check whether a string is palindrome or not in javascriptpalindrom for sentence in jspalindrome score javascriptjavascript to check palindrome or nothow to find palindrome in javascripthow to ispalindrome oop jshow to check if a string is a palindrome javascriptjs check if palindromecheck palindrome without functions in javascriptjacvascript check palindromecheck if the word is palidrome in javascriptverificar se c3 a9 palindrome jspalindrome checker jsif element not found do this action in selenium 22aabbcc 22 find this is palindrome or not in javascriptjavascript string palindrome programfind palindrome of anumber jaavscripthighest value palindrome javascriptpalindrome number program in jsfunction word palindrome javascriptjavascript ispalindrome functionpalindrome function in javascriptpalindrome javascript trueis word a palindrome javascriptpalindrome with javascriptcode to check if a str is palindrome or not in jspalindrome string in js programiz jspalindrome with jschecking for a palindrome in jscheck palindrome javascriptjavascript write a function called ispalindrome that accepts a single string argument 2c then returns true or false depending upon whether or not the string is a palindrome palindrome array jspalindromein javascriptwhile loop for palindrome javascripthow to check the given string is palindrome or not in javascriptcheck if a string is palindrome in javascript without using string functionsreturn a palindrome jspalindrome string in jswriting palindromes in jswrite a javascript to check given string palindrome or not convert string to palindrome jsnode js check for palindromepalindrome function javascriptpalindrome number javacripthow to check work is palindrome or not in javascriptpalindrome string in an array check in javascripthow to get a palindrome jsfind palindrome number in javascriptpalindrom program in jspallindrome jsfind palindromes in given range in javascriptpalindrome check in javascriptpalindrome code javascriptfunction is palindrome javascriptwrite a function that checks if a given word is a palindrome javascriptjs double palidromejavascript check if palindromepalindrome pblms in javascriptpalindromerearranging javascripthow do you check if a given string is a palindrome in javascriptlearn palindrome code javascriptjava script palindrom inputprogram to vheck if string is palindrome jsparlindrom in javacriptaltername palindrome code in javascriptprint palindrom number javascripthow to check if the word is a palindrome or not in jspalindrome word javascriptpalindrome or not in javascriptfind palindrome in string javascriptstring palindrome using jswrite a program that find palindrom elements in array in jsjavascript a string is k palindromewrite a function that takes in a single word as a string and returns true if it 27s a palindrome and false otherwisefunction that checks palindrome in javascriptpalindrome permutation codewars javascriptjs palindromes stringjava scrips paliandromejavascript check for palindromnumber palindrome in jsjavascript program to check for palindrome numberpalindrome algorithm javascriptgiven the string check if it is a palindrome javascriptwriting a function to check palindrome in javascriptpalindrome example javascriptwhat is a palindrome in javascriptpalindrome solution jswrite all possible palindrome in javascriptevaluating palindromes in jspalidrom check javascripthow to check something is palindrome word in jsjs test palindromecheckfor palindrome jspalindromes in javascriptcheck if array is palindrome javascriptstring palindrome jscheck a string is palindrome or not jsjs check if string is pallindromfind regex for palindrome javascriptpalindrome in javascript w3schoolshow to return numeric palindrome javascriptjavascript function palindromecount all possible palindrome from string in javascriptpalindrome using javascriptjs code to check palindromepalindrome string js different waysjs is palidromepalindrome number in an array in javascrippalindrome check in javascript for futurejs checck if string is palindromepalindrome in javascript without using string functionvalid palindrome javascriptpalindrome creator javascriptjs check if string is palindromeapalindrome string in jspalindrome program explanation in javascriptjavascript palindrome numbercount palindromes in javascriptcheck if a string is a palindrome in javascripthow to make a palindrome checker in javascriptjavascript code for palindrome stringwrite a javascript program to check palindrome wordswrite a function checkpalindrome that accepts a single argument 2c a string the function should return true 28boolean 29 if the string is a palindrome 2c false if it is not make sure your function will give the correct answer for words with capital letters check if string is palindrome jsjavascript palindromojavascript palindormepalindrome string javascript w3schoolswrite a program to find palindrome number in javascriptjs print palindromecheck if a word is a palindrome into array and count javascripthighest value palindrome jsstring is palindrome or not in javascriptpalindrom javascript einfachpalindrome checker in javascriptpalindrome javascipthow to write a function with a palidrome jshow to check if array with string is a palindrome javascriptpalindrome check javascriptpalindrome string program in javascriptpalindrome number using javascriptcheck if word is palindrome javascripthow to find palindrome numbers javascriptpalindrome number in javascript directlyjavascript function to check palindromehow to check if word is palindrome in javascript recursionpalindrome js how tofunction for palindrome javascriptpalindrome javascript real time exampleis palindrome in jshow to test for a palindrom in jsjavascript a string is k palindrome if it becomes a palindrome on removing at most k characters from it palindrome js codepalindrome javascript tolowercasecheck if a word is a palindrome javascripthow to return all the palindromes in an array in jsjavascript recursive palindromepalindrome number javascript w3schoolscheck for palindrome jspalindrome js checkcheck palindrome string in jsgiven string check all possible palindrome in javascriptjavascript palindrome functionpalindrome numbers logic javascriptpalindromo javascriptto check if string is palindrome in javascript or nothow to check for a palindrome in javascriptsentence palindrome in jswrite a function to take a string and return its palindromic score in javascriptpalindrome algorithm jsjavascript longest possible palindrompalindrome string program in jscheck a string is palindrome or not in jscheck if number is palindrome javascriptfind palindrome numbers javascriptpalindrome string javascriptpalindrome in jspalindrome number in javascriptjavascript function to check if a string is a palindromecheck palindrome function jschecking for palindromes in javascript integerspalindrome function jshow to find all numeric palindromes in javascripentered string is palindrome or not in javascriptpalindrome substring javascriptis a phrase polindrome jsfind a palindrome in a whole sentence javascriptfinding possible palindrome we can make from string in javascripthow to check if a word can be a palindrome javascripthow to check palindrome string in javascriptnode js wap to find palindrome palidrome no program in js programjs palindrome checkerjs palindrome checkpalindrome number in js making a palindrome javascript tutorialreturn palindrom string in jscheck for palindrome javascriptfind palindrome in a string javascriptcheck palindrome jspalindrome with 3 numbers javascriptpalindrome or not using jshow to check if a string is a palindrome jsalternative palindrome code in javascript 5chow to check if a number is a palindrome in javascriptpalindrome strings jscheck palidromes jsispalindrome function javascriptword is palindrome in javascriptalternative palindrome javascript codepalindrome program in javascirptcheck if a string is a palindrome javascriptpalandron javascriptispalindrome js for loopjs is palindromepalindromic in jsloop half string to check palindrome javascripthow to check given string is palindrome or not in jsnodejs check for palindromealternative palindrome javascript pallindrome in javascriptwrite a program that find palindrom elements of array in jsjavascript palindrome stringwrite a program to check given number is palindrome or not in javascriptbest way to check the string is palindrome or not in typescriptlongest palindrome in javascriptprogram to check if string is palindrome jshow to see if a string is a palindrome in javascripthow many palindrome we can make from a string in javascripthow to tell if a number is a palindrome or not javascriptpalindrome checker source code javascriptpalindrome code js numberpalindrome javascript questionhow to check if an array is a palindrome in javascriptchecking for palindrome in jshow to create a javascript test for palindromewrite a program to find all the palindrome words in a string using javascripthow to check given string is palin drome or not in jshandle both cases in your script i e radar noon moom are palindromejava ssriptpalindrome number jsfunction topalindrom in javascriptpalindrome code in node jspalindrome in javascripttpalindroom javascriptpalindromo algorithm jshow to find palindrome word in a sentence using javascriptpalindrome in javascript using arraycheck if string is a palindrome javascriptjavascript palindrome without regexcheck if string is palindrom javascritpfind palindrome word from below string array in javascriptjavascript check palindrome stenece regex how to check palindrome in javascriptfunction to check if string is palindrome javascriptcheck for palindrome in javascriptjavascript check palindrome regexpalindrome javascript into htmlpalindrome string program in javascript using alert functionhow to check for palindrome in javascriptjavascript find palendrome in stringchecking for palindrome jspalindrom jshow to check if a number is palindrome in javascriptjavascript palindrom numberspalindrome in javascript with looppalindrome problems in javascriptpalindrome ins jsreturn palindrome in jsfunction palindromecutting 28s 29 7b 7d javascriptcheck if string is a palindrome jspalindrome in javascripthow to check palindrome in javascript for lowercase and uppercasefind palindrome of number using javascriptextract palindrome word in a sentence using javascriptcheck if a sentence is palindrome jsfinding possible palindrom from string in javascripthow do you split a palindrome in javascript 3falternative palindrome code in javascriptjavascript detect string is programming codejavascript code palindromehow to find all numeric palindromes in javascriptpalindrome javascrpwrite a function that tests whether a string is a palindrome javascript pseudocodefunction palindrome javascriptefficient palindrome algorithm javascripthow to check if a string is palindrome in javascripthow to check a sentence is palindrome or not in javascriptpalindrome checker javascrptpalindrome of an stringarray element in javascript logichow to check palindrome javascriptpalindrom javascriptpalindrome meaning in jspalindrome code in javascriptwap to find palindrome in node jshow to return numeric palindromes javascriptcheck if a string is palidrome or not in javascriptispalindrome jspalindroem javascriptpalindrome rearranging javascripthow to check if palindrome jsjavascript longest palindromejs palindrome is validjavascript code to check string is palindrome or notjavascript palindrome number programnodejs to find palindromjs palindromeget palindrome javascriptjavascript how to solve is palindromecount palindromes in javascript efficienthow do you check if a string is a palindrome in javascriptcreate palindrome javascriptnode js palindromejavascrpit code that determines a palindrome word in a sentencejavascript check for palindromeprogram for palindrome in javascriptpalindrome program design in javascriptpalindrome in javascript waysfunction to check palindrome in javascriptjs reverse string palendromenumber palindrome in javascriptjs palindrome stringjavascript check if string is a palindromepalindrome jsfind palindrome in string javascript setpalindrome string using alert box in javascriptreturn true if the given string is a palindrome otherwise 2c return false javascriptjavascript recursive check if word is palindromehow to right palindrome in javascriptwrite a program for palindrome string in javascriptbuild a node js server to say a given string is palindrome or not input 3a localhost 3a8080 2fis palindrome 3ftext 3dmadam output 3a true 2ffalsepalindrome program in javascript without using reverse functionhow to return palindromes out of a string jshow to write a function to check palindrome in jspalindrome or not javascriptpalindrome javascript solutionwrite a javascript program to check whether a string is palindrome or notpalindrome js functionfind all palindrome in string javascriptcheck if sentence is palindrome or not in jspalindrome js numberslargest palindrome in string in jsjavascript paliandrome or not javascriptwhat is palindrome in javascripthow to check if the string is palindrome in javascriptfind all palindrom we can make from a string in javascriptjavascript check for palidromecheck if palindrome javascriptpalindrome string jspalindrome coding jsprint 1 if string is palindrome or not in javascriptpalindrome program in jscheck if a number is palindrome in javascriptis palindrome solutiontions javascripthow to check for a palindrome in jsjavascript implement a method which receives a string and checks whether it is palindrome on not pallindrome program in javascripthow to check if a string is a palindrome in javascript and return true or falsepalindrome words in javascriptpolindrom algorith in jscheck if string is palindrome in javascriptpalindrome with reduce function javascriptjs palindrome numberpalinderom jsjavascript to ceck palindromecheck if a string is palindrome in javascriptpalindrome javascriptpalindrome coding question jspalindrome in javascript using for looppalindrome pure java scriptjavascript find palindrome in stringcheck palindrome in jsjs functrion word palindromepallindrome solution javascriptfind all palindromes in a string javascriptfind palindrom numbers in javascripthow to write function to check palindrome in jshow to write code for palindrome with loop in javascripthow to solve palindrome problem javascriptjavascript for all possible three digit palindrome numberjs is palindrome functionchecking palindrome with mapprint palindrome in javascripthow to solve palindrome number in javascriptchecking for palindromic strings in jspalindrome code js3 write a program to find whether a string is palindrome or not in javascripthow to determine if a string is a palindrome using recursion javascriptpalindrome javascript everypalindrom in javascriptis it a palindrome javascriptcomo achar palindromo com javascriptpalindrome numbers javascriptpalindrome number program in javascriptjs ispalindrome for loopcheck string palindrome javascriptreverse palidrome javascriptthow to find palindrome on string javascriptsee if the word is a palindrome jspalandrom in jscheck string is palindrome jspalindrome string in javascriptfunction checkpalindrome 28inputstring 29js check the string is palindrome or notpalindrome number javascriptpalindromo js solvedjavascript checking palindromevalid palindrome jsfind all palindromes in a integer javascriptpalidrome examples output in javascriptbest practices palindrome jshow to find palindromws jshow to check if not a palindrome javascriptcheck string is palindrome or not in javascriptjs find palindromehow to extract palindrome word in an sentence using javascriptgiven the string 2c check if it is a palindrome javascriptwrite a function that determines a palindrome javascriptispalindrome javascriptjavascript check if number is palindromejavascript check palindrome inside sentencecheck if string is palindrome javascriptpalindrom javascript testcheck whether string is palindrome or not in javascripthow to check palindrome number in javascriptjs function flindrumpalendrome finder javascriptpalindrome number in javascript using functionpalindrome built in function in javascriptpalindrome function numbers javascriptjs palyndrom everypalindrome numbers true jspalindrome pure javascriptfind out if a given string is a palindrome javascriptfind a palindrome number in jspalendron node jsjs possible palindromemake a palindrome jsis palindrome javascript programizpalindrome stacks javascriptpalindrome of string in javascriptpalindrom checker jscheck palindrome in javascriptpalindrom js numbersjavascript palindrome checkgiven two strings 2c return if they are palindrome of one another jshow to build a nodejs application to find palindromejavascript code for palindromepalindrome javascript algorithmcheck whether string is palindrome or not jvascriptpalindrome without reverse and regexjavascript function that returns true if the given string is a palindrome otherwiseis palindrom js one linetext is palindrome or not in javascriptpalindorme jswhat happens when you encrypt an empty stringhow to match a string palindrome in jsreturn all the palindromes in an array in javascriptcheck if it is a palindrome javascrioptpalindrome again jsjavascript palindrome solutionhow to check string is palindrome or not in javascriptjs palindrome evercheck palindrome using built in functions in javascriptpalindrone javascriptwhile loop palindrome javascripthow to check a string is palindrome or not in javascriptpalindrome in javascript examplenodejs check if a string is a palindromejavascript function pallindromejavascript function that checks whether a passed string is palindrome or not 3fhow do we ensure if a port is open in linuxpalindrome in javascript javatpointhow to check integer is palindrome in javascriptjavascrip 5bt program to check a no is a palindromepalindrome challenge javascriptfunction palindrome 28word 29 javascriptone line palindrome checker javascriptpalindrome javascript for loophow do i check if a number is a palindrome in javascriptpalindromic in string javascriptjavascript to check if string is palindromefor loop palindrome javascripta palindrome is a word 2c phrase 2c or number that is spelled the same forward and backward javascriptjavascript for all palindrome numberwrite a program to find palindrome string in javascriptpalindrome word in javascriptstring palindrome in es6code to check palindrome in javascriptpalindrome checker javascriptstring palindrome in jsfunction to return a palindrom true or false jsjavascript palindrome algorithamdetect palindrome js palindrome in a string javascriptjavascript palindrome questionjavascript return palindromea function that determines whether or not a given string is a palindrome jsjavascript is palindromecheck palindrome of string in javascripthashmap palindrome javascriptpalindrom question javascriptwhile string files on server what should we do if the file names are not uniquecount palindrome words in a sentence using javascriptjavascript pallindromeis palindrome javascriptwrite a function that returns true if a word is a palindromejavascript palindrome checkerpalindromes javascriptreturn numbers that are palindromes javascriptpalindrome check jsextract character in string to make palindrome javascriptpalindrome examples in javascriptpalindrome nodejspalindrom in js9 palindrome number jsalmost palindrome javascriptcheck palidrome in jspalindrome or string jschecking palindrome in javascriptjavascript program to check palindrome stringpalindrome in javascript es6find palindrome javascriptjavascript program to check whether the given string is palindrome or notpalindrome names in jspalindrome check jsswriting palendrome with javascriptispalindrome javascript es6 palindrom in jsjs palidromejavascript code to check palindromeverificar palindromo javascriptcreate a recursive function that determines whether a word is a palindrome or not javascriptjs integer palindrome in dom manipulation node js wap to find palindrome withaappfind palindrome anywhere in string javascriptjavascript loop to check palindromefind palindrome of string using javascriptwrite a program print all the palindrome words in a string using javascriptpalindrome of a number in javascriptpalindrome code node jscheck palindrome number in javascriptcheck if palindrome jslongest palindrome javascriptverrifier palindrome jsjs check if string is a palindrome bit manipulationjavascript program to check palindromewhat happens if you try and split a string at something that doesn 27t exist javajavascript palindrome algorithm solutionhow to check if a string is a palindrom jsfastest way to check if palindrome jsjavascript coding challenge 233 3a palindrome checkhow do you check if a given string is a palindrome 3f javascriptpalindrome program in javascript without using inbuilt functionjavascript code that determines a palindrome word in a sentenceshould return true if the word is a palindrome jestcheck string palindrome or not in jsfind palindrome string jsarray palindromo jspalindromic array check in javascriptjavascript fun functions plindormewhat is a palindrome jshow to check if a word is palindrome in javascriptcheck if string is palindrome javacriptis palindrom jsnumeric palindromes javascriptjavascript palindromepalindrome solution javascriptconvert string to palindrome javascriptfunction javascript get palindromepalindrome javascriptjavascript check if string is palindromecount elements in an array that are palindromes javascripthow to check string is palindrome or not in jshow many characters are not a match palindrome javascriptpalindromo jspalindrome program in javascriptis palindrome jsstring palindrome in javascriptw3schools javascript palindrome 28racecar 29is palindrome check in javascripthow do you detect whether or not a word is a palindrome in javascriptgiven word is palindromw or not in javascriptpalindrome loop javascriptjs function that takes in a single word as a string and returns true if it e2 80 99s a palindromecheck if is palindrome javascriptjavascript for all possible palindrome numbercreate a topalindrome method that creates a palindrome out in javascriptprint all the palindrome string in a given sentence using javascriptfind a palindrome in a sentence javascriptcheck to see if a word is a palindrome jscheck whether palindrome javascriptpalindrome numbers in javascripthow to check a palindrome in javascriptif we want define style for an unique element 2c then which css selector will we use 3fpalindrome in javascriptpalindrome js