How to write palindrome in JavaScript

前端 未结 30 1745
情书的邮戳
情书的邮戳 2020-11-29 02:42

I wonder how to write palindrome in javascript, where I input different words and program shows if word is palindrome or not. For example word noon is palindrome, while bad

30条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-29 03:38

    Below code tells how to get a string from textBox and tell you whether it is a palindrome are not & displays your answer in another textbox

    
    
    
    
    
      
       
    

    1234

    Example
    GooGle

    "This is a Example Text..."

    Number1 : Number2 : Number2 :

    1. water
    2. Mazaa


提交回复
热议问题