Help on Part 4 Switch "unspecified error"[solved]


#1

I got an unspecified error on this exercise and was wondering if someone could help me identify my error.

var user = prompt("What is your favorite sport to play").toLowerCase();
switch(user){
case 'football':
console.log("It’s not whether you get knocked down, it’s whether you get up");
break;
case 'rugby':
console.log("Rugby is a beastly game played by gentlemen; soccer is a gentleman's game played by beasts; football is a beastly game played by beasts. - Henry Blaha");
break;
case 'soccer':
console.log("Success is no accident. It is hard work, perseverance, learning, studying, sacrifice and most of all, love of what you are doing or learning to do. - Pele");
break;
default:
console.log("I will have to play " + user + "at some point. It has always looked like fun");
};


#2

nevermind, I had the code correct. It just wasn't working for some reason. I refreshed the page and it worked.