My output is correct,but run tests not working

Hello, I am doing this challenge:

And I finished my code, my output is correct but the screen doesn’t show the passed message.
I really don’t know how to solve it.

There are some screenshots:

And console has an error message, I don’t know whether it is related to my problem or not.

Instead of screenshots,

go head and paste your code in this post. Make sure it’s formatted.