Palindrome String Using Function In Javascript Tutorialspoint