Double return is confusing, I don't see it my code calling for it


I am confused because my code output does a double return or something, and the second return uses a parameter I didn't even put in (but it does say what is requested by the exercise), even when I make it return the right output it still gives and the double return and an error saying it didn't return what it actually did return... Where in my code did it go wrong?


Oops, try again.
Hmm, it looks like your nameString() function doesn't return 'Hi, I am Susie' for the name Susie.


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

Hi, I am FatAss
Hi, I am Susie


HI this line

return console.log("Hi, I am" + " " + name);

you got return and console.log() you should remove one ..the console.log()


figured it out, thanks. had to console log the function