www.webdeveloper.com
Results 1 to 2 of 2

Thread: Help in Codecademy Javascript

  1. #1
    Join Date
    Oct 2013
    Posts
    8

    Help in Codecademy Javascript

    Hey guys,
    I'm having trouble with a lesson and don't know to proceed even with the hint.
    Every time I try to follow the instructions as said it comes back with an error and says I don't call the "timesTwo" function right.
    Help please?
    Here is the code:

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

    // Call timesTwo here!
    var newNumber =
    console.log(newNumber);

    *all the code above HAS TO REMAIN THERE*
    Any other hints or help would be great! Thanks!

  2. #2
    Join Date
    Oct 2012
    Location
    Croatia
    Posts
    238
    Code:
    var newNumber=timesTwo(2);
    console.log(newNumber)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles