It is about returns and functions and I can not seem to get it to work


#1



https://www.codecademy.com/en/courses/javascript-beginner-en-6LzGd/1/2?curriculum_id=506324b3a7dffd00020bf661


i can't get the newNumber to print correctly


var timesTwo = function(number) {
    return number * 2;
};

// Call timesTwo here!
var newNumber = timeTwo(jeff) 
{
console.log(newNumber);
};
timesTwo(8);
newNumber(8);


#2

@tcoyne52

You should set newNumber variable to the function timeTwo with a number as parameter(jeff is not a variable or an object or a string!). Then, you need to log newNumber to the console.


#3

On this part of you code.

You just need to call your function timesTwo with a number parameter you want.
For example:

var newNumber = timesTwo(1)
console.log(newNumber);

No more no less. remove other lines on that part.