2015-01-03 21:48:22 +11:00

9 lines
98 B
JavaScript

var obj = {
get foo() {
return 5 + 5;
},
set foo(value) {
this._foo = value;
}
};