Why does my getter return a different value every time?
<p>I have the following class:</p>

<pre><code>class Counter {

    constructor(start) {
        this.start = start;
    }

    set start(number) {
        this._start = number;
    }

    get start() {
        return this._start++;
    }

    next() {
        return this.start + 1;
    }
}
</code></pre>

<p>I instantiate it as follows:</p>

<pre><code>let counter = new Counter(23);
</code></pre>

<p>It works fine if I do my next function:</p>

<pre><code>counter.next(); // 24
counter.next(); // 25
// ...
</code></pre>

<p>But if I log out <code>start</code> I always get something different</p>

<pre><code>counter.start; // 25;
counter.start; // 26;
</code></pre>

<p>Why is this happening?</p>

<p>Did I do something wrong?</p>