Function Recap Console.log help


Hey I am having trouble figuring out what the instructions is really telling me what to do. Where do I put the console.log? Am i calling the function correctly?

Oops, try again. It looks like you didn't print anything to the console! Did you remember to console.log() the result of passing your name to the nameString() function?

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


Hi first this line


should be outside the function nameString You could also remove it from all your code you don't need it then this line


put it inside a console.log()


Thank you so much I figured it out


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