Hi, can you post all your code? It is hard to explain your mistake if we cannot see everything here so we can show you what the instructions were asking or referring to.
It is great that you solved the challenge, but instead of posting your full working solution, it is best to just mention in general how you figured things out without posting the code.
We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions.
It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.
We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.
The error occurs because the code you wrote checks if isError is strictly equal to true (isError === true). However, the exercise asks you to check the “truth” of isError, which means that you only need to check if it is “truthy”, without explicitly comparing it to true. That is, mod edit: solution removed
It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.
We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.