11. Functions recap


Here's my code:

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


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."



Refresh the browser and try submitting again.


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



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;




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


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