Dodaj getter do obiektu JavaScript
Object.defineProperty(obj, 'valueName', {
get: function () { return 5 }
});
MunchDuster
Object.defineProperty(obj, 'valueName', {
get: function () { return 5 }
});