Skip to content

Instantly share code, notes, and snippets.

@joseanpg
Created September 1, 2011 09:14
Show Gist options
  • Save joseanpg/1185773 to your computer and use it in GitHub Desktop.
Save joseanpg/1185773 to your computer and use it in GitHub Desktop.
function getMax(a,b) {
var r = Math.sqrt(a-b);
if (isNaN(r)) return b;
else return a;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment