Getting problem, it says that i didnot print the value of newNumber variable


it showing error that i didnt print value of newNumber

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

// Call timesTwo here!
var newNumber = timesTwo ("5"); 


on your function call:

var newNumber = timesTwo ("5");

you should pass 5 as integer, no string (Remove the quotation marks)


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