5 Tying it all together


#1

my error : Oops, try again. You didn't put quotes around the name you gave the greeting function!

my code:

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

// Badly written function with syntax errors!

var greeting = function (name) {
    console.log("nice to meet you" + " " + name);
};

greating("omega");

#2

Hello :slight_smile:

It's only a typo, here:

greating("omega");

it should be greeting.


#3

thank you so much, how could i have missed that.


#4

It happens all the time for me :slight_smile:

You're very welcome.


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.