Basic JavaScript - Subtract One Number from Another with JavaScript

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

Your code so far

const difference = 45 - 0;
const difference = 12

Your browser information:

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

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

Link to the challenge:

Welcome to our community!

The instruction: " Change the 0 so the difference is 12 ."

You have declared a new variable of ‘const’ type, with the same name. This is not allowed, so it can not be even required here.

Your task is to change existing 0 to a number…

1 Like

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