Lesson 5; tying it all together!


#1

hi guys,

lesson 5, tying it all together, my answer is wrong but I don't know why!! can you help me???

Thank you!!!!

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

// Badly written function with syntax errors!

var greetings = function (name){
var name = name + 10;
console.log(name);
};
greetings(name)


#2

You're calling greetings and passing it a parameter, you need to pass it an argument, preferably a string with a name in it.


#3

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