mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-13 00:01:18 -05:00
417 B
417 B
title
| title |
|---|
| Subtract One Number from Another with JavaScript |
Subtract One Number from Another with JavaScript
Using the '-' subtraction operator, you can get the difference of two numbers...
var diff1 = 30 - 14; // Difference is 16
var diff2 = 90 - 60; // Difference is 30