7/13 What is wrong? I think I did it properly


#1


https://www.codecademy.com/en/courses/javascript-beginner-en-6LzGd/1/2?curriculum_id=506324b3a7dffd00020bf661#


Oops, try again. It looks like you didn't print out the 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 = function(timesTwo) {
    console.log(newNumber);
};
timesTwo("6");


#2

we dont need "" for number.anything inside "" is string.

therefore "6" and 6 are not same.

also call the function inside console.log for printing return statement.
for example:

console.log(x(arg)) //here x is a function name.


#3

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