Page MenuHomePhorge

proto.js
No OneTemporary

Size
364 B
Referenced Files
None
Subscribers
None

proto.js

function Person(first, last) {
this.firstName = first;
this.lastName = last;
}
Person.prototype.fullName = function () {
return this.firstName + ' ' + this.lastName;
};
const person1 = new Person('John', 'Doe');
const person2 = new Person('Jane', 'Smith');
console.log(person1.fullName());
console.log(person2.fullName());
console.log(Person.prototype);

File Metadata

Mime Type
text/plain
Expires
Sun, May 3, 9:23 AM (1 d, 21 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
518203
Default Alt Text
proto.js (364 B)

Event Timeline