11. Functions recap


#1

Here's my code:

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

};
console.log(nameString("Ken"));

I have read through multiple posts on this topic and have tried a lot of different tweaks over the past hour and I found a post where this code is supposed to solve the problem. The error I get is "Oops, try again. Your code doesn't look quite right."

`


#2

Refresh the browser and try submitting again.


#3

This is the syntax . You called function wrongly !
var greeting = function (name) {
console.log("Great to see you," + " " + name);
};

greeting("sevenhell");


#4

It's weird I use to have the same problem, but i actually solved it the same way:

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

};

console.log(nameString("Irini"));


#5

I refreshed the browser and the code worked. Thank you!


#6

Glad it worked out, happened to me a few times too :slight_smile:


#8