#5 Tying it all together


#1


I need help! It keeps saying there is something wrong with the syntax.


Replace this line with your code. 
// Nicely written function:
var calculate = function (number) {
    var val = number * 10;
    console.log(val);
};

// Badly written function with syntax errors!

calculate (console.log(val)}


#2

When you call a function to the console, do you place a curly brace at the end?


#3

I have done it but it still keeps saying that there is something wrong with the syntax.


#4

I was asking if you are supposed to end a line of code with a curly brace. Take note of your syntax.


#6

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