I have to celebrate you baby


#1


I have an unclosed string, but I don't see where it is? I've looked online, and referenced the hint section. I don't see what I'm doing wrong...


var getReview = function (movie) {

};
switch(movie) {
    case 'Wedding Crashers':
    
    case 'Man on Fire: 
        
    case 'Secret Life of Walter Mitty':
        
    default: "I don't know!"
}


#2

Nevermind I'm an idiot. I caught it.


#3

However, when I try to use return, it says only valid inside a function, and there's no value for movie? Did I not place the switch inside the function?


#4

nest your switch statement inside your function?

var getReview = function (movie) {
   // switch statement here
}; // this } ends your function

#5

You forgot the picture of Captain Obvious!


#6

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