The results you get will depend on the host environment. If I run this:
alert(toString
alert(toString
... in Chrome I get trueand falseaccordingly; on Firefox I get falseand false. IE gives trueand false , but as shown below.
window , , .:-) , toString.call("foobaz") IE, toString of window JavaScript call apply. ( , , ...)