Skip to content

Instantly share code, notes, and snippets.

@thomasvaeth
Created August 8, 2019 05:46
Show Gist options
  • Save thomasvaeth/590a81dbcd2cf5648941c59894b93a69 to your computer and use it in GitHub Desktop.
Save thomasvaeth/590a81dbcd2cf5648941c59894b93a69 to your computer and use it in GitHub Desktop.
"If you knew how much work went into it, you would not call it genius." - Michelangelo
function validTriangle(a, b, c) {
if (a + b <= c || a + c <= b || b + c <= a) return false;
return true;
}
validTriangle(60, 80, 40);
validTriangle(5, 5, 50);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment