+ 1
assistance
In programming, it is common to use assignments to modify the contents of a variable. Remember that everything to the right of the equals sign is evaluated first, so we can say: myVar = myVar + 5; to add 5 to myVar. Since this is such a common pattern, there are operators which do both a mathematical operation and assignment in one step. One such operator is the += operator. var myVar = 1; myVar += 5; console.log(myVar); // Returns 6 ________________________________________ Convert the assignments for a, b, and c to use the += operator. a should equal 15. Passed b should equal 26. Passed c should equal 19. You should use the += operator for each variable. Passed You should not modify the code above the specified comment.
5 Réponses
+ 3
Avinesh from freecodecamp javascript course?
+ 3
Marzan Yes looks similar, the last line says it all 😂 It's very familiar.
+ 3
Newton Isaac Ndede What you want through this question?
+ 2
It looks like a question from freeCodeCamp.
0
I had stacked but i did rewrote it and got the formula right. Thank you for your concern.