Syntax Error


#1

My code won't pass through, and one of the variables won't print out.

// Parameter is a number, and we do math with that parameter
var timesTwo = function(number) {
return number * 2;
};

// Call timesTwo here!
var newNumber = function timesTwo(number) {
return timesTwo * 2
console.log(newNumber);

};

timesTwo(newNumber);


#2

This is the problem.

newNumber = timesTwo(28);
console.log(newNumber);

You dont want to times timesTwo by 2 again.

doing that first line is assigning newNumber to equal 2 x the number in the bracket which it got from the first function.