Skip to content

Instantly share code, notes, and snippets.

@periakteon
Created March 22, 2023 14:34
Show Gist options
  • Save periakteon/d99a473127215b5be6c770969378a065 to your computer and use it in GitHub Desktop.
Save periakteon/d99a473127215b5be6c770969378a065 to your computer and use it in GitHub Desktop.
FreeCodeCamp: Use Multiple Conditional (Ternary) Operators (Ex1)
function findGreaterOrEqual(a, b) {
if (a === b) {
return "a and b are equal";
}
else if (a > b) {
return "a is greater";
}
else {
return "b is greater";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment