Skip to content

原型链考察打印输出题 #41

Closed
@manyuemeiquqi

Description

function Foo() {
  Foo.prototype.a = 1
  this.a = 2
}
Foo.a = 3
Foo.prototype.a = 4
// Foo.a
let obj = new Foo()
// obj.a
// Foo.prototype.a


console.log(obj)

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions