Created
August 18, 2016 22:39
-
-
Save jjsub/099ae8ad2558abf8c577b06f9064ae78 to your computer and use it in GitHub Desktop.
This file contains 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
// Nested ternary operator | |
var sexuallyActiveSelection = sexuallyActive === undefined ? '' : (sexuallyActive === 'Y') ? 'Sexually Active' : 'Not SexuallyActive'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment