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


#1


ttps://www.codecademy.com/courses/javascript-beginner-en-6LzGd/1/2?curriculum_id=506324b3a7dffd00020bf661#
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!
timesTwo(8);
var newNumber = function(nought)
{
    return nought + 6;
};
console.log(newNumber(1));


#2

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


#3

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


#4

Got it! Thanks a lot! Did it


#5

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