Subtract One Number from Another with JavaScript

Subtract One Number from Another with JavaScript
0

#1

I’m new to coding and I’m stuck on substraction exercise below.
Where by you need to replace 0 with a number such that the difference is 12. I replaced 0 with 23 but still got one error ’ 45 should be substracted with one number’
Help !!!

Your code so far


var difference = 45 - 0;

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 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


#2

change the 0 so the difference is 12

It’s not asking you to do anything except change the 0 in the sum so that the sum is correct. You don’t need to do anything except change that one number


#3

I already did that. One error is solved, remaining one. Its substraction not sum


#4

Output verified, I got the required result.