Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumJavaScriptgetters and settersSingle-choice MCQ2 views

In strict mode (e.g. an ES module), what happens at `counter.n++`?

'use strict'; const counter = { _n: 5, get n() { return this._n; } }; counter.n++;