Apparently this is correct? could some please confirm whether it is or not


var nameString = function (name) {

return "Hi, I am" + " " + name;
nameString ("Susie")

console.log("Hi, i am" + " " + name);


It's a bit off. You never save the returned value, and you try to print name in console.log(), and name is never set to some value.
Your function, however, is looking good.
Try to modify code into this

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

You don't need a message in console.log(), because you already set it inside function.
And you can just call function and pass it the value Susie, and function will return string Hi, I am Susie. to the console.log() which will then print it.


Okay I'll try modifying it, thanks for your time. :slightly_smiling: