HELP! Function Recaps


#1

Hi all,

I am just wondering whether this is the correct answer for the Function Recaps assignment.

The result is "Way to Go", but I doubt if this is the real answer.

Please check my code below:

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

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

The display result:
[Function: nameString]

Really appreciate your help. :slight_smile:


#2

All the pieces are there;

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

or,

greeting = nameString("Angela");
console.log(greeting)

#3

Hi Mtf,

Great! Thank you so much for the help. :slight_smile:


#4

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