I suck at javascript


Help plox,where'd i go wrong


It is better for those helping if you post your raw code, rather than just a picture. Just saying.

Your greeting() function is overwriting the parameter variable:

var greeting = function (name) {
    var name = "lori";

Instead, have your function log out the greeting phrase for the name you pass in the argument:

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


I'm not sure what exercise this is so you will need to confirm that the phrase is as expected, but the basic mechanics are there.