

In other languages that shouldn’t be equal either though, right?
Maybe you meant
if (2){
console.log("nonzero ints are truthy")
}
else {
console.log("no they're not")
}
Which would output
nonzero ints are truthy
and that would actually work in all languages I know. But that’s different from being equal.


Yeah, uneducated people might say something like that.