Getting Confirm is Not a Function


#1


For the first part of code your own adventure, it asks you to:

1) It's always polite to ask your user if they are ready to play.

2) Using the confirm command, make sure your user is ready to play. For example, I would use the sentence "I am ready to play!". Add whatever phrase you would like in the confirm.

My code:
confirm("I am ready to play!");

It's saying:
TypeError: confirm is not a function

What am I doing wrong?


#2

This must be very frustrating but you are doing nothing wrong here your code is perfect. The only thing I can suggest is try a browser other than chrome.


#3

It's still not working, and I haven't heard back from CodeAcademy customer support when contacting them directly. Are there other free services where I can learn JS?


#4

I really like free www.freecodecamp.com, although it is more challenging.


#5

Gonna check it out, thanks!


#6

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.