5/13 - Debugging I'm getting a get syntax error "unexpected token var"


#1

// Badly written function with syntax errors!

greeting var func{name}(console.log(name)))}

var greeting = function (name) {
console.log("Haribol" + " " + name);
};
greeting("Krsna");


#2

comment this line out


#3

Thank you very much, rydan!


#4

Mark this post as solved to prevent people who crawl here from thinking there is still an issue