Lesson 11. Functions recap


#1


How did I pass this?


var nameString = function(name){
    return "Hi, I am" + " " + name;
}
nameString("Jake");
console.log(nameString);


#2

ideally, you would combine this two lines into one line:

nameString("Jake");
console.log(nameString);

when calling the function, place it inside console.log so the returned string is logged to the console


#4

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