Created
October 5, 2015 08:56
-
-
Save mgmilcher/45ecf852515dbcd52ce9 to your computer and use it in GitHub Desktop.
Range Finder
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
var x1 = 1; | |
var x2 = 100; | |
var y1 = 99; | |
var y2 = 1250100; | |
function rangeFinder(x1,x2,y1,y2) { | |
return Math.max(x1,y1) <= Math.min(x2,y2); | |
} | |
console.log(rangeFinder(x1,x2,y1,y2)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment