Type error prompt not a function


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!");

confirm("Enter if you dare!");


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