2014-10-11 22:33:08 +11:00

9 lines
98 B
JavaScript

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