D.R.Y. Not printing?


#1

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/en/courses/javascript-beginner-en-6LzGd/1/1?curriculum_id=506324b3a7dffd00020bf661#

<In what way does your code behave incorrectly? Include ALL error messages.>

I put in the code below, and it said that I passed, but nothing prints to the preview screen? I am worried that it’s not actually accurate and I’m not really sure how to check…



var orangeCost = function (price) {
    console.log = (price*5);
};
orangeCost(5);



#2

Your console.log() won’t run as your syntax is incorrect thus it doesn’t display anything. Remove the equal sign =


#3

I did, but then, it just says “console.log is not a function.”


#4

Works on my side, refresh your page.


#5

Worked the second time I refreshed. The first time it printed “NaN Nan NaN.”
Thanks!