+ 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.

6th Feb 2020, 10:30 AM
Newton Isaac Ndede
Newton Isaac Ndede - avatar
5 Respostas
+ 3
Avinesh from freecodecamp javascript course?
6th Feb 2020, 10:59 AM
NightFox
NightFox - avatar
+ 3
Marzan Yes looks similar, the last line says it all 😂 It's very familiar.
6th Feb 2020, 11:01 AM
Avinesh
Avinesh - avatar
+ 3
Newton Isaac Ndede What you want through this question?
6th Feb 2020, 11:13 AM
A͢J
A͢J - avatar
+ 2
It looks like a question from freeCodeCamp.
6th Feb 2020, 10:33 AM
Avinesh
Avinesh - avatar
0
I had stacked but i did rewrote it and got the formula right. Thank you for your concern.
6th Feb 2020, 4:28 PM
Newton Isaac Ndede
Newton Isaac Ndede - avatar