Someone knows what’s is causing the below:
TypeError: Cannot read property ‘split’ of undefined
So the argument
word is coming in as
undefined and therefore you can’t run
split() on it.
You can either make sure it doesn’t come in undefined, or have a conditional to return an error message if it is undefined.
nvm, I figured that I just forgot to pass
as a parameter in the palindrome function.
Thank you though!