Instant Boosting

EasyAcc. 94.8%
+20 XP 5

Fast Forward

The Prefix Increment (++value) places the plus items early. This executes addition earlier instead, so it immediately returns the brand new amount.

The Assignment

  1. Push ++points properly into a distinct variable named bonusPoints.
  2. Send identical values packed in an array: [bonusPoints, points].

01EXAMPLE 1

Inputpoints = 10
Output[11, 11]

Explanation: Pumps value first, then issues equal results.

Constraints

  • Use prefix ++.
  • Both returning array numbers will logically look equal.
FundamentalsMathOperators
JavaScript
Loading...
5 Hidden

Input Arguments

points10

Expected Output

[11,11]

Click RUN to test your solution