My code is wrong?


#1


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


#2

This logic is flawed.

what do you expect this to do? return is no variable. Get rid of this line completely.
I can see where you're going with this, but you're doing it wrong.

This line is perfect.

This line is good too, but you need to move it outside of a function. You are creating recursion, but you don't want to. Just make sure to get it outside of the function nameString.
I hope this helps! :slight_smile:


#3

Poker Online

Poker


#4

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