Subtract One Number from

Tell us what’s happening:

Your code so far


var difference = 12;
 


Your browser information:

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

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/subtract-one-number-from-another-with-javascript

Good try. But the problem is really asking you to compute 12 by subtracting the original number by some number.

The logic is more like

var difference = 45 - ?;

Which you will fill in the question mark with a number to get number 12.