JavaScript Best Practices
Ternary Conditionals var x = true ? true : false; Nested Ternaries isArthur && isKing ? (weapon = ‘a, helment = ‘a) : isArcher ? (weapon = ‘b’, helmet = ‘b’) : (weapon = ‘c’, helmet = ‘c’); Logical Assignments Var result = 42 || undefined; // 42 Var result2 = [‘sweet’] || […]