4/33 Why?


#1

Why?


#2

Hi, this is what I got.

var getReview = function (movie) {
switch(movie){
case "Toy Story 2":
return"Great story. Mean prospector.";
break;
case "Finding Nemo":
return"Cool animation, and funny turtles.";
break;
case "The Lion King":
return"Great songs.";
break;
default:
return"I don't know!";
}

};


#3

Doesn't work. Same result only this time nothing appears in the terminal


#4

Hmmmm...
I'm not sure what is going on then.
Sorry


#5

make sure the sentences are exactly the same in the return if there is even an extra space where there should not be it will not work look at the sentence you missing a full stop after turtles


#6

You were right. That's my inattentivness.
Problem was in missing dot.


#8

In future, please post code, not screenshots. Members have expressed their concerns in at least three ways:

  1. They cannot run the code.
  2. They cannot read it, some times.
  3. They cannot copy lines from the code.

If you must post a screenshot, let it be AFTER posting the code. Thank you.


#9

mtf, understood, sorry and thank you.


#10
var getReview = function (movie) {
    switch(movie){
    case "Toy Story 2":
    return"Great story. Mean prospector.";
    break;
    case "Finding Nemo":
    return"Cool animation, and funny turtles.";
    break;
    case "The Lion King":
    return"Great songs.";
    break;
    default:
    return"I don't know!";
    }
    
    };
    getReview('Toy Story 2');

go to next


#11
    
};
getReview('Toy Story 2');

// Indentation is wrong.

A silly way to illustrate that we can grab and annotate, not just grasp, the visual code.


#12
what wrong in code.

"A silly way to illustrate that we can grab and annotate, not just grasp, the code."


#13

Let's say that some calamity has taken our sight. How are we to read our facebook page? That funny phrase in an image is lost on us, now. We'll never share in the 'ha ha' that everyone else is seeing. When we cannot see, we can still take part as long as the annotation is descriptive. That is assuming the developer has taken this into consideration. Here I leave off in a vapor. Think about it.


#15

now how is it...@mtf mtf