The following code is meant print the namestring with a name. however, it's not correct.
var nameString = function (name) {
return "Hi, I am" + " " + name.
}
nameString("Amir")
console.log(nameString)
What am I not implementing/doing wrong that stops it from displaying the string as well as a name? thanks.