I have to celebrate you baby


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!"


Nevermind I'm an idiot. I caught it.


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?


nest your switch statement inside your function?

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


You forgot the picture of Captain Obvious!


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