Merge pull request #7745 from raisedadead/fix/assignment-with-challenges
Fix Compound Assignment Challenges
This commit is contained in:
@ -651,7 +651,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "56533eb9ac21ba0edf2244af",
|
"id": "56533eb9ac21ba0edf2244af",
|
||||||
"title": "Compound Assignment With +=",
|
"title": "Compound Assignment With Augmented Addition",
|
||||||
"description": [
|
"description": [
|
||||||
"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:",
|
"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:",
|
||||||
"<code>myVar = myVar + 5;</code>",
|
"<code>myVar = myVar + 5;</code>",
|
||||||
@ -702,7 +702,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "56533eb9ac21ba0edf2244b0",
|
"id": "56533eb9ac21ba0edf2244b0",
|
||||||
"title": "Compound Assignment With -=",
|
"title": "Compound Assignment With Augmented Subtraction",
|
||||||
"description": [
|
"description": [
|
||||||
"Like the <code>+=</code> operator, <code>-=</code> subtracts a number from a variable.",
|
"Like the <code>+=</code> operator, <code>-=</code> subtracts a number from a variable.",
|
||||||
"<code>myVar = myVar - 5;</code>",
|
"<code>myVar = myVar - 5;</code>",
|
||||||
@ -752,7 +752,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "56533eb9ac21ba0edf2244b1",
|
"id": "56533eb9ac21ba0edf2244b1",
|
||||||
"title": "Compound Assignment With *=",
|
"title": "Compound Assignment With Augmented Multiplication",
|
||||||
"description": [
|
"description": [
|
||||||
"The <code>*=</code> operator multiplies a variable by a number.",
|
"The <code>*=</code> operator multiplies a variable by a number.",
|
||||||
"<code>myVar = myVar * 5;</code>",
|
"<code>myVar = myVar * 5;</code>",
|
||||||
@ -802,7 +802,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "56533eb9ac21ba0edf2244b2",
|
"id": "56533eb9ac21ba0edf2244b2",
|
||||||
"title": "Compound Assignment With /=",
|
"title": "Compound Assignment With Augmented Division",
|
||||||
"description": [
|
"description": [
|
||||||
"The <code>/=</code> operator divides a variable by another number.",
|
"The <code>/=</code> operator divides a variable by another number.",
|
||||||
"<code>myVar = myVar / 5;</code>",
|
"<code>myVar = myVar / 5;</code>",
|
||||||
|
Reference in New Issue
Block a user