Last active
August 29, 2015 14:23
-
-
Save WillSquire/d1b866402ec92ae20604 to your computer and use it in GitHub Desktop.
Difference - Returns the difference between two numbers.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Finds the difference between two numbers. | |
* | |
* @param {number} a | |
* @param {number} b | |
* @returns {number} | |
*/ | |
function difference(a, b) { | |
return Math.abs(a-b); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment