I do not get this my code is right i ran it in repl.it and it works just fine


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

this is the Instructions :
Write a function called nameString()
It should take name as a parameter.
The function returns a string equal to "Hi, I am" + " " + name.
Call nameString() by passing it your name, and use console.log to print the output.


it returns the right thing but an error message comes up it says

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


the string returned should be an exact match, you miss a space between Hi, and I am


i fixed that then this came up
Oops, try again. It looks like you didn't print anything to the console! Did you remember to console.log() the result of passing your name to the nameString() function?


console.log() is a function call, it requires parentheses, between the parentheses supply what you want to log to the console


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