I can't get this right.How am I wrong?


What exactly is wrong with my code?
Why can't I get the correct code like in the other lesson?

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

// Call timesTwo here!
var newNumber = function(nought)
    return nought + 6;


seems you need to use console.log() to log the returned result by timesTwo the console, just like you did when calling newNumber

Please provide the exercise url, so i can confirm this. At the moment i don't know what exercise you are at




Got it! Thanks a lot! Did it


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