Functions Recap: What am I doing wrong?


I don't understand what is going on here. Am I doing this wrong or is the lesson bugged out?
Any help is much appreciated.

here is my code:

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

console.log = nameString("Suzie");

this is the message I get:

"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?"

but I don't understand because as far as I can tell I am doing nothing wrong. I've tried refreshing the page a few times and still same error.

the WEIRD part is that in my console it's printing "Hi, I am Suzie" like it's supposed to, but I still get the error.


You are reassigning console.log() to nameString, instead of just printing it.


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

console.log requires () immediately after. Everything else looks solid. The () after return are optional, but that very code worked for me.