Created
March 22, 2023 14:40
-
-
Save periakteon/00e1f4e2667860f11452475eab485e80 to your computer and use it in GitHub Desktop.
FreeCodeCamp: Use Multiple Conditional (Ternary) Operators (inproper ex)
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
// uygun girinti olmadan kullanmak kodun okunuşunu zorlaştırır, | |
// dolayısıyla aşağıdaki gibi yazmak yerine | |
// girintili bir şekilde, bir üstteki örnekte gibi yazmak en iyisidir | |
function findGreaterOrEqual(a, b) { | |
return (a === b) ? "a and b are equal" : (a > b) ? "a is greater" : "b is greater"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment