Skip to content

Instantly share code, notes, and snippets.

@johnhutchins
Created October 8, 2019 18:06
Show Gist options
  • Save johnhutchins/c622ef300d3d7c2849ad416a48435271 to your computer and use it in GitHub Desktop.
Save johnhutchins/c622ef300d3d7c2849ad416a48435271 to your computer and use it in GitHub Desktop.
Get the middle number between two numbers.
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