3 ms·
> In js I thought 1==true, and 1 is shorter than !0 ?? `1==true` but `1!==true` (`===` and `!==` check for type equality as well and while `!0` is a boolean, `
by ayhanfuat 3y ago
> In js I thought 1==true, and 1 is shorter than !0 ??
`1==true` but `1!==true` (`===` and `!==` check for type equality as well and while `!0` is a boolean, `1` is not.