Javascript return function error


#1


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


I am stuck at return functions, Javascript exercise 7. the link above.
The instruction as follows,
'On line 7, after the equals sign, call the function timesTwo with any parameter you want'


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

// Call timesTwo here!
var newNumber = timesTwo(4);
console.log(newNumber);

I have tried several times, seeing 'TypeError: console.log is not a function'
somebody with the correct format please.


#2

The instructions are asking only for you to call the timesTwo function with any parameter. They're not asking for a new variable. Just call timesTwo.


#3

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