Possible bug or am I wrong? intro to JS functions activity 7


#1

this is a link to the activity...

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

I am calling the function that it states and the console is properly displaying the desired result but it will not aknowledge it. below is my code and if you look at the excercise stated I believe I have done this correctly. please let me know what you think,,,

this is my error message

Oops, try again. It looks like you didn't print out the value of newNumber

Replace this line with your code. 

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

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


#2

newNumber is supposed to be assigned the value of timesTwo times a number of your choosing.

This line looks like what newNumber needs.


#3

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