Literally Speaking no 3


#1


keeps saying
Oops, try again. There was a problem with your syntax.
please help


var james = {
    job: "programmer",
    married: false,
    speak: function(mood) {
if(mood === "great"){
    console.log("Hello, I am feeling" +"" mood);
    }else{
        console.log("Hello, I am feeling" +"" mood);
    }
    
    }
};

james.speak("great");


#2

this string:

console.log("Hello, I am feeling" +"" mood);

is poorly joined together, a + between "" and mood is missing, to join the string together, also the sentence will now produce:

Hello, I am feelinggreat

there should be a space between feeling and great


#3

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