I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.
If you have a question about a specific challenge as it relates to your written code for that challenge, just click the Get Help → Ask for Help button located on the challenge. It will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.
When I cut and paste your answer into (what I assume is) the challenge, passes for me. But I can’t see all your code so I can’t be sure that you didn’t accidentally change something else.
Sometimes the tests “glitch”. Try rebooting, clearing the browser cache, trying a different browser. If all else fails, just back out of that one and try the next.