diff --git a/README.md b/README.md index a5682fbb..93e57087 100644 --- a/README.md +++ b/README.md @@ -4183,11 +4183,13 @@ Object.defineProperty(obj, "increment", { get: function () { this.counter++; + return this.counter; }, }); Object.defineProperty(obj, "decrement", { get: function () { this.counter--; + return this.counter; }, });