Merge pull request #11223 from Manish-Giri/fix/compound-assignment-with-augmented-addition

Improve wording in compound assignment with augmented addition challenge
This commit is contained in:
Jonathan
2016-10-16 19:33:35 +01:00
committed by GitHub

View File

@ -763,7 +763,7 @@
"<code>myVar = myVar + 5;</code>",
"to add <code>5</code> to <code>myVar</code>. 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 <code>+=</code> operator.",
"<code>myVar += 5;</code> will add <code>5</code> to <code>myVar</code>.",
"<blockquote>var myVar = 1;<br>myVar += 5;<br>console.log(myVar); // Returns 6</blockquote>",
"<h4>Instructions</h4>",
"Convert the assignments for <code>a</code>, <code>b</code>, and <code>c</code> to use the <code>+=</code> operator."
],