Equal and unequal values to false in JavaScript

1. A value equal to false:

In this, I didn't expect that '0' == false, which should be the string '0' is automatically converted to the number 0, and then automatically converted to false.

 

2. Values ​​that are not equal to false:

I always thought that null == false would return true, but in fact it would return false, and the variable undefined and false assigned to it are not equal.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325172869&siteId=291194637