Return keyword


#1

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

var newNumber = timesTwo(8);
console.log(newNumber);

Oops, try again. Your code doesn't look quite right. Did you set var newNumber = timesTwo(n), where n is whatever number you want?

Replace this line with your code.


#2

The code looks fine. Try to refresh your browser.


#3

Thanks a lot It has helped.


#4

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