print("0 is " + (0 ? "truthy" : "falsy")); print("'0' is " + ('0' ? "truthy" : "falsy")); print("[] is " + ([] ? "truthy" : "falsy")); print("null is " + (null ? "truthy" : "falsy")); print("false == 0 is " + (false == 0)); print("false == null is " + (false == null));
Output