Profile image of AngelMiner12
Submitted by AngelMiner12
over 10 years

TypeError: Cannot read property 'toUpperCase' of null

I’m gonna need an expert here to explain this to me. I submit my code and it says: Oops, try again and on the console it says: TypeError: Cannot read property ‘toUpperCase’ of null, which is all greek to me. here is all of my code that has .toUpperCase in it:

var user = prompt(“What will you do? ANSWERS: Take the glinting thing, sneak up on the wriggling thing, OR open the door.”).toUpperCase();

var p0001 = prompt(“Do you want to wait?”).toUpperCase();

var p0002 = prompt(“Is there anything else you want to do before going down?”).toUpperCase();

var p003 = prompt(“What will you do? ANSWERS: Take the glinting thing, OR go down the stairs.”).toUpperCase();

var p004 = prompt(“Do you get ye flask?”).toUpperCase();

var p005 = prompt(“Do you open the door”).toUpperCase();

var p006 = prompt(“Do you get ye flask?”).toUpperCase();

var p007 = prompt(“Do you open the door”).toUpperCase();

can anyone help? I’m not quite sure what’s wrong.

Answer 556729bbe39efe208b0007e4

0 votes

Permalink

No error in your code. Try to reload the website (F5).

Profile image of schamanu
Submitted by schamanu
over 10 years

2 comments

Profile image of AngelMiner12
Submitted by AngelMiner12
over 10 years

thanks!

Profile image of ctoribio0125
Submitted by ctoribio0125
over 10 years

reloading doesn’t help

Popular free courses

  • In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.
    • Beginner Friendly.
      4 Lessons
  • Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.
    • Beginner Friendly.
      11 Lessons
  • Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.
    • Beginner Friendly.
      6 Lessons
Explore full catalog