I’ve been staring at this for 3 days now, I just don’t see it. Please help.
The error tells us that
userInput is undefined. That means that perhaps you have called the function without passing a string argument? Only string type objects have a