Javascript – Checking if a word in string contains a palindrome
I want to find if a string contains a palindrome word. An example would be hellosannasmith contains a palindrome word and should return sannas, however givemefood should return none. I first tried it through 2 for loops then I started…