7. Return Keyword


I cannot for the life of me figure out what is wrong with this I've been looking at others problems with this excise and can't figure out where I am going wrong. when I hit "Save and Submit" this pops up "Did you set var newNumber = timesTwo(n), where n is whatever number you want?"

here is my code:

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

// Call timesTwo here!
var newNumber = timesTwo (8); {


I'm not sure why you wrapped your console.log(newNumber); between curly brackets, try to remove them and see if it works. Besides that everything should be ok.


Tks a lot!
I've lost too much time in this exercise