Can someone help me?


#1

// Badly written function with syntax errors!

var greeting = function (name)
{
(console.log("Hello" + " " + name);
}
greeting("Yannick")

Why is this code not working?

https://www.codecademy.com/courses/javascript-beginner-en-6LzGd/0/5?curriculum_id=506324b3a7dffd00020bf661


#2

there is a ( before console.log which doesn't belong there


#3

Thanks mate, I would never find that by myself