html program to check string palindrome in html and js code example
Example: javascript palindrome check
const isPalindrome = str => str === str.split('').reverse().join('');
// Examples
isPalindrome('abc'); // false
isPalindrom('abcba'); // true