This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by TheRogamare
over 8 years

AAAAAAAAA please help me with 7/13 i can't understand........

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

// Call timesTwo here! var newNumber = function timesTwo(n) { console.log(newNumber); return newNumber * 2; timesTwo(8); };

Answer 55b3cd4f9113cbb17600046c

3 votes

Permalink

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

// Call timesTwo here! var newNumber = timesTwo(6)<—part you had to add console.log(newNumber);

points
Submitted by Josh Elmers
over 8 years