Interview Question : Palindrome Simple Demo and Example

Palindrome is very common question in string manipulation,normally interviewer asked to create method to check sting is palindrome or not,in this post i will let you know how to check string is palindrome in JavaScript as well as jquery.
palindrome

Whats is Palindrome ?:

palindrome is a word, phrase, number, or other sequence of characters which reads the same backward or forward.

Checkout other PHP Interview Queations,

Option 1:

Below method is used to check string is palindrome or not using javascript.

How To use :

simple call above method and passed your string.
alert(isPalindrome('aba'));

Option 2:

Below method is used to check string is palindrome or not using jQuery.

How To use :

simple call above method and passed your string.
alert(testPalindrome('aba'));