instanceof Operator

Eugen.Konkov at aldec.com Eugen.Konkov at aldec.com
Sun Oct 21 09:26:33 PDT 2007


var a;
a= {};
a instanceof Object //true
a= [];
a instanceof Array //true
a='asdf';
a instanceof String //false
a= 7;
a instanceof Number //false

Why?



More information about the Es4-discuss mailing list