Created
March 2, 2017 12:15
-
-
Save Neppord/613860dc04238f7afd40d7d185a62932 to your computer and use it in GitHub Desktop.
my own notes in discussing style guides
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
const x = true || false, y = 1, z = 2; | |
function () { | |
return x ? y : z; | |
} | |
function () { | |
if (x) { | |
return y; | |
} | |
return z; | |
} | |
function () { | |
let r = z; | |
if (x) { | |
r = y; | |
} | |
return r; | |
} | |
function () { | |
let r; | |
if (x) { | |
r = y; | |
} else { | |
r = z; | |
} | |
return r; | |
} | |
function () { | |
if (x) { | |
return y; | |
} else { | |
return z; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment