Lesson 3: null error


#1

var use = prompt("You find a giant snake in the road what do you do? FIGHT, RUN, CRY, SING").toUpperCase();

I keep getting "TypeError: Cannot read property 'toUpperCase' of null" I kept trying this with with different coding, and even copied and pasted the original from the example, but to no avail, what should I do?


#2

The problem might be that you are supposed to call the prompt "user" instead of "use". That is the only problem I found.


#3

I tried that, but to no avail.


#4

Hi try to refresh the page.


#5

try with that var use = prompt("You find a giant snake in the road what do you do? FIGHT, RUN, CRY, SING").toUpperCase();