Created
October 8, 2019 18:06
-
-
Save johnhutchins/c622ef300d3d7c2849ad416a48435271 to your computer and use it in GitHub Desktop.
Get the middle number between two numbers.
This file contains hidden or 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
function middleInBetweenNumnbers(min, max) { | |
return Math.floor((max+min)/2); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment