Basic JavaScript - Subtract One Number from Another with JavaScript

Tell us what’s happening:
I have been going over this since last night. I am stuck on this and I am not sure if I am doing this right. It keeps saying that I am not * Failed: The variable difference should be equal to 12.

  • Failed: You should only subtract one number from 45. Can someone help me with this one?

Your code so far

const difference = 45 - 12;  // difference is 33

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36

Challenge: Basic JavaScript - Subtract One Number from Another with JavaScript

Link to the challenge:

What is the value of 45 minus 12 ?

Is it what they asked for? (They wanted the value to equal twelve after the subtraction)

yes, I assume they are cause all it says is * The variable difference should be equal to 12.
*You should only subtract one number from 45. And it also said change the 0 to 12 and I did that.

It did -not- say to change the zero to twelve.
Please reread my post or reread the exercise.

But, there is another section after reading the lesson information. It is saying change 0 to 12. Then, it say to do those things as tasks

I got it and understand it now

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