Return Keyword


Introduction to Functions js, Return Keyword

The error message says I didn’t print out the value of newNumber. What am I doing wrong?

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

var newNumber = function(number){


Declare newNumber as a variable and set it equal to this.

newNumber isn’t meant to be a function.

Then, log newNumber to the console.

I hope this helps!


That helped! Thanks!


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