Basic JavaScript - Subtract One Number from Another with JavaScript

Tell us what’s happening:
Describe your issue in detail here.

Your code so far
i want to know how we arrive at
var a = 45;
var b = 12;
var difference = a - b;
console.log(difference);

const difference = 45 - 0;

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:109.0) Gecko/20100101 Firefox/111.0

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

Link to the challenge:

The instructions are:

“Change the 0 so the difference is 12.”

You did a lot more that. I would reset the lesson to get the original JS back and then do only what the instructions ask. Making any unexpected changes will most likely cause the tests to fail.

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