Error: Unspecified Error


#1

Hi everyone,
I am stuck on Conclusion 2 Getting started with programming. I think my code goes fine when I put it on the console in the developer tool bars but it prints me out a "error: unspecified error" on the console inside the exercise. It says; "Oops, try again. Your code doesn't look quite right. Check the Hint if you need help! ". Here is my code:

// Not sure where to begin? Check the Hint!
if ("hi".length === 2)
{
console.log("I finished my first course!");
}
else
{
console.log("Go back to kindergarten and learn.");
}

I'm not really sure where is the error. Thanks in advance for taking time to respond.


#2

I copied your code and tested it myself. Your code worked fine for me. Try using a different browser and use the same code as you did here.


#3

@jaaakee
Thanks, I think it must be from an error of connection but it worked.


#4

I'm glad you got it! Happy coding! :slightly_smiling: