#11 Functions recap


#1

Whats the Problem here
var nameString = function(name) {
return ("Hi, I am" + " " + name);
};

nameString("Susie");
console.log(nameString=("Susie"));

and it is showing
Oops, try again. Did you create a function called nameString() ?


#2

@surbhi.vashishat

Look here:

Remove you console.log statement since you already called the function and already returns the result.


#3

despite it was showing the same error statement. But on removing '=' from this statement console.log(nameString=("Susie"));
I got the desired output.