Code your own adventure 2 toUpperCase() and toLowerCase()


TypeError: Unable to get property 'toUpperCase' of undefined or null reference

var response = prompt("what flavor do you want?, chocolate, vannila, or strawberry?").toUpperCase();


I think this Looks good and i try it in my console and no issues.

Maybe clear browsercache and refresh the site.