Home > front end >  Alert (obj) output [object object] in uppercase object is what mean?
Alert (obj) output [object object] in uppercase object is what mean?

Time:04-28

Assume that obj let obj={}, the statement of my current understanding is the Object obj constructor, the alert (obj) out are [Object, 'constructor] this form?
But how this explanation:
 function Foo () {}; 
Let the f1=new Foo ();
Alert (f1);//or [object object], but f1 construtor Foo, i.e., should not be [object Foo]?


  • Related