in , , ,

myThoughtsOnJavaScriptConditions

myThoughtsOnJavaScriptConditions | javascript-memes, java-memes, try-memes | ProgrammerHumor.io
javascript-memes, java-memes, try-memes | ProgrammerHumor.io

Content

if (condition) return A; return B; Lawful Good if (condition) return A; else if (!condition) return B; Lawful Neutral switch (condition) case true: return A; default: return B; Lawful Evil if (condition) return A; else return B; Neutral Good return condition ? A : B; True Neutral return A, B! condition; Neutral Evil for (; condition;) return A; return B; Chaotic Good return condition A I B; Chaotic Neutral try return B; finally if (condition) return A; Chaotic Evil