mirror of
https://github.com/swc-project/swc.git
synced 2025-01-02 10:37:56 +03:00
c6b22c57f8
Co-authored-by: Fábio Santos <fabiosantosart@gmail.com>
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();
|