Category: Prototype

0

JavaScript Prototype

Javascript Prototype123456789function Person(name) { this.name = name; this.sayHello = function(){ console.log(this.name); }}var foo = new Person('Lee'); foo의 prope