My code is wrong?


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


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:


Poker Online



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