Chrome's Javascript console: what does it output in terms of objects?

前端 未结 3 567
广开言路
广开言路 2021-01-21 02:22

From the javascript console in Chrome:

> function Person(name){this.name=name;}
undefined

At this point, Person.prototype should be an empty

3条回答
  •  忘掉有多难
    2021-01-21 02:31

    Those are methods and properites inherited from the Object class.

    It discusses the defaults here

提交回复
热议问题