4 ms·
JavaScript will coerc the types. 1+1 and true+true both = 2
by vorticalbox 3y ago
JavaScript will coerc the types. 1+1 and true+true both = 2
- Jtsummers 3y agoSo you've gone from "nested ternary is hard to read" to "This is an introductory text, let's mix arithmetic with numbers and booleans by using true and false for 1 and 0"? That's a remarkable turn in just a few comments toward the side of obfuscation.