4 ms·
Here's how you should use ternary: return (isblue ? "Blue" : "Red");
by Retra 12y ago
Here's how you should use ternary:
return (isblue ? "Blue" : "Red");
- rootbear 12y agoMy evil twin wants to do this some day: (pickfunc? func1: func2)(pickarg? arg1: arg2); Works great!