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
- Push
++pointsproperly into a distinct variable namedbonusPoints. - Send identical values packed in an array:
[bonusPoints, points].
01EXAMPLE 1
Input
points = 10Output
[11, 11]Explanation: Pumps value first, then issues equal results.
Constraints
- Use prefix ++.
- Both returning array numbers will logically look equal.
FundamentalsMathOperators
JavaScriptSystem handles I/O — write your function only
Loading...
5 Hidden
Input Arguments
points10
Expected Output
[11,11]
Click RUN to test your solution