Code your adventure 2 - Help with Syntax please!


#1


Can someone find the syntax error? It looks right to me, 
after I looked and referenced the overview. Thanks in advance!

(link [here](https://www.codecademy.com/en/courses/javascript-beginner-en-ZA2rb/0/4?curriculum_id=506324b3a7dffd00020bf661#))

var user = prompt("What time should we leave?").toLowerCase();

switch(user) {
    case 'now':
        console.log("Good idea! I'll get ready as soon as I can!");
        break;
    case 'in 10 minutes':
        console.log("Sounds good, I'll start getting ready so you don't have         to wait.";
        break;
    case 'whenever':
        console.log("I won't get ready until I think we're going to leave            soon..");
        break;
    default:
        console.log("Okay, we'll shoot for that.");
        break;
};


#2

you simply forgot to close the Parenthesis.


#3

Oh great! Thanks a bunch - I got so excited about being able to type it all from memory that I missed that.. hahaha. Thanks again :slight_smile:


#4

haha ive been there before. no problem, good luck with the course :smile:


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.