I am getting this answer wrong can someone please help me


#1

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

};

nameString("Leah");

console.log(nameString);

the resul come out to be[function]


#2

To log a function and its argument to the console, call it like this:

console.log(function(argument));

What is the var p for in your function?


#3

sorry just delete that line var p i wrote it by mistake


#4

and thank you i was able to solve it with no problem


#5

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