7. return keyword


#1

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

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

can someone help me figure out what is wrong? it says
Oops, try again. It looks like you didn't print out the value of newNumber but it prints 20...


#2

Hi your console.log should be like that console.log(newNumber);


#3

As @wizmarco said + if you ran your code refresh the page to reset console.log from newNumber to what it originally was.