Confirm error but it's working!


#1

I wrote this:
`Qus = "Are you ready to play?";
textyes = "I am ready to play!";
textno = "Not ready!";

if (confirm(Qus)) {
console.log(textyes);
}
else {
console.log(textno);
}`

Is something wrong with it because i get: "Oops, try again. It looks like you didn't use confirm to make sure your user is ready. "


#2

Your code looks correct but it may be an issue with this lesson and the parser. It's possible that instead of passing a variable to confirm, they want you to pass the string "Are you ready to play?". Make sure the verbiage is exactly the same. as what the lesson asks for.


#3

It's work when i just use confirm X, But i used confirm in my code for a same result and it's correct and should not be a problem!
Thank you anyway....