Why isn't my code working?


#1



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


It says, " Oops, try again. You didn't put quotes around the name you gave the greeting function!". I even put it through an online syntax validator and it said the code was all valid. Please help me!


var calculate = function (number) {
    var val = number * 10;
    console.log(val);
};

var greeting = function (name) {
    console.log(name);
    };
    gretting("Ali Allam")


#3

@boardslayer54737

It's greeting function right?


#4

Looks like you don't have a semi colon after your name.


#5

@ancestralx

Hi,
What name are you talking about?


#6

gretting("Ali Allam");


#7

I'm wrong. You also have the word gretting instead of greeting


#8

@ancestralx

Hi,
It's not obligated to put semicolons


#9

Your call is wrong. you have gretting instead of greeting


#10

@ancestralx

Who are you talking to????:confused: