Error in function recap


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


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


Line 2 ..There has to be a space between

Hi, I

As you are using an anonymous function try calling it inside the console.log statement...The task will be done in a single line

Here is how we do it



Thanks it worked. Cant believe i was stuck for an hour with this mistake.


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