Type error prompt not a function


#1


I am on the second step to creating my game

TypeError: prompt is not a function


confirm("I am ready to play");
var age = prompt("What's your age?");

if( age > 13 ) 
{
    console.log("Play on Bro!");
}

else 
{
confirm("Enter if you dare!");
}


#2

If you haven't already, I would try reloading/refreshing your browser.