這裏說的隱性類型轉換,是==引發的轉換。javascript
這個順序必定要死記,這是面試時常常問到的。java
下面是一些雜題,本身作作面試
0 == undefined 1 == true 2 == {valueOf: function(){return 2}} NaN == NaN 8 == undefined 1 == undefined null == {toString: function(){return 2}} 0 == null null == 1 { toString:function(){ return 1 } , valueOf:function(){ return [] }} == 1