postfix increment code example Example 1: Postfix increment let x = 3; y = x++; Example 2: Prefix increment let a = 2; b = ++a;