Lesson 5; tying it all together!


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;

// Badly written function with syntax errors!

var greetings = function (name){
var name = name + 10;


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


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