Tying it all together


#1

That is my response:

var greetingfunction = function(greeting) {
console.log("Hello, World!");
};

for:

SyntaxError: Unexpected token var

...and so, ..


#2

the lesson wants the name of the function to be "greeting" rather than "greetingfunction." Changing this should fix your problem.


#3

It doesn't wooooork!

But I did some changes:

greeting var func{name}(console.log(name)))}
var greeting = function(Ola) {
console.log("Olá");
};

SyntaxError: Unexpected token var


#4

Hi codewhiz7190,
On my mind it should be as:

var greeting = function (name)
{
console.log("Yes, you did it," + " " + name);
};
greeting("Olá");


#5

I'm glad you has answered my issue, but it didn't work, again. So... I'M STUCK !


#6

Sorry, I lost an open {
For me it works.
Maybe try to open this lesson with other browther also.


#7

NOT YET... sorry for me