mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-04-03 19:01:06 +00:00
18 lines
232 B
JavaScript
18 lines
232 B
JavaScript
export class MyClass {
|
|
constructor() {
|
|
this._number = 42;
|
|
}
|
|
|
|
get number() {
|
|
return this._number;
|
|
}
|
|
|
|
set number(n) {
|
|
return (this._number = n);
|
|
}
|
|
|
|
render() {
|
|
return `My number is: ${this.number}`;
|
|
}
|
|
}
|