Return Keyword not working?


I've been struggling to get this code to work, can anyone help?

// 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){


Nevermind! After resetting the code and checking the instructions once again I solved my problems.


Glad to hear that. Just some remarks on using the forum. First please post in the correct section (press the Q&A button on the exercise you're working on and you should be redirected to the correct place) and second if you figured it out yourself either delete it in shame (just kidding, happens often enough to see the error right after posting the question about it) or show further readers what the problem was and how you fixed it. In this case it was trying to write another timesTwo function instead of using the existing one, wasn't it?