mirror of
https://github.com/swc-project/swc.git
synced 2025-01-03 11:01:52 +03:00
10 lines
208 B
JavaScript
10 lines
208 B
JavaScript
|
var Foo = function () {};
|
||
|
Foo.prototype.set = function (value) {
|
||
|
this.value = value;
|
||
|
return this;
|
||
|
};
|
||
|
Foo.prototype.print = function () {
|
||
|
console.log(this.value);
|
||
|
};
|
||
|
new Foo().set("PASS").print();
|