Tying it all together (5) I need help!


// Nicely written function:

var calculate = function (number) {
var val = number * 10;

// Badly written function with syntax errors!

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

Please help me find the problem!


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


ohhhhhhh thanks man i owe you