What am i doing wrong!


#1


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


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);
console.log(newNumber);


#2

Did you try after refreshing your browser?


#3

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: .


#4

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

var newNumber = timesTwo(5)


#5

Thanks for all the answer refreshing the page did it.


#6

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