I am having a problem in javascript


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

When I write the above code,it gives a error message saying:

Oops, try again. There was a problem with your syntax.

here's a link for the exercise

https://www.codecademy.com/en/courses/javascript-beginner-en-6LzGd/2/3?curriculum_id=506324b3a7dffd00020bf661


#2

Becauase you didn't write console.log to print the output, so instead this line:

Write this line:
console.log(nameString("Arshad"));


#3

@mohamadbahaa Thanks that was helpful :smiley: