What am i doing wrong!



I can't pass this lesson for some reason! I get a message saying "It looks like you didn't print out the value of newNumber"

var timesTwo = function(number) {
    return number * 2;

var newNumber = timesTwo(5);


Did you try after refreshing your browser?


Do this my friend,it works. Press F5 and your page will refresh, but your code will be saved. Just save and submit angain and all will be fine :slight_smile: .


remove the semicolon in
[var newNumber = timesTwo(5);]

var newNumber = timesTwo(5)


Thanks for all the answer refreshing the page did it.


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