Return keyword


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

var newNumber = timesTwo(8);

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.


The code looks fine. Try to refresh your browser.


Thanks a lot It has helped.


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