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


this is a link to the activity...


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


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

This line looks like what newNumber needs.


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