Operators
Increment postfix
Converts the target to a numeric value, stores that value plus one and yields the previous numeric value. For a string target, the returned old numeric value is not the original string.
Formal Syntax & Structure
javascript syntaxjavascript
target++Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| target | assignment target | Writable binding or property. |
Return Value
Number or BigInt
New numeric value for prefix; previous numeric value for postfix.
Working Example
Example Snippetjavascript
let n = 3;console.log(n++, n);