You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
typeofFunction;// 'function'typeofnewFunction();// 'function'typeoffunction(){};// 'function'typeofArray;// 'function'typeofArray();// 'object'typeofnewArray();// 'object'typeof[];// 'object'typeofBoolean;// "function"typeofBoolean();// "boolean"typeofnewBoolean();// "object"typeofMath;// 'object'typeofMath();// Math is not a functiontypeofnewMath();// Math is not a constructor
Activity
Clish commentedon Feb 24, 2020
在==判断时的隐式类型转换规则没有细说, 这里面有很多有意思的例子, 比如 [] == ![], [undefined] == false等等.
Cosen95 commentedon Dec 12, 2020
整理的很全面~
krisQT commentedon Jan 17, 2021
隐示类型转换没讲到点上