sam-s4s
Member since Aug 1, 2020
- Profile: /members/14205-sam-s4s.htm
- Comments: 1
Recent Blog Comments By sam-s4s
-
The Double-Bang (!!) Operator And A Misunderstanding Of How JavaScript Handles Truthy / Falsy Values
Posted on Aug 1, 2020 at 7:40 PM
// Simplified version - since numbers are inherently Truthy / Falsy values, and IF // conditions work with Truthy / Falsy values, there's no need to cast anything. if ( x && y ) { movePanel( x, y ); } Except what if you wanted to move the panel to a 0 position? 0 is a number... read more »