Tying it all together (5) I need help!


#1

// Nicely written function:

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

// Badly written function with syntax errors!

val('work'); <-------- I fixed it but still has an error

Please help me find the problem!


#2

Hi you should call the function calculate instead of val().. and are you sure they aske you to create a function calculate?


#3

ohhhhhhh thanks man i owe you