Stuck on Lesson 11


I keep getting the message "Oops, try again. There was a problem with your syntax." I've looked at multiple topics on the forum that were similar and changed my code many times but I'm still getting this error message. What am I doing wrong?

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



Remove the the quote mark after name in your return statement.


I don't know why the lesson tells you to put it, but the + " " between "Hi, I am " and name is useless, and will throw an error. Just add a space at the end of "Hi, I am".


Thank you! Such a dumb mistake....needed another pair of eyes :slight_smile:


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