Merge pull request #14135 from mbrien12/fix/typo-basic-javascript

Fixed typo in Basic Javascript exercise - 'storing values with assignment operator'
This commit is contained in:
Dylan
2017-03-28 17:34:58 -05:00
committed by GitHub

View File

@ -129,10 +129,10 @@
"description": [
"In JavaScript, you can store a value in a variable with the <dfn>assignment</dfn> operator.",
"<code>myVariable = 5;</code>",
"Assigns the <code>Number</code> value <code>5</code> to <code>myVariable</code>.",
"This assigns the <code>Number</code> value <code>5</code> to <code>myVariable</code>.",
"Assignment always goes from right to left. Everything to the right of the <code>=</code> operator is resolved before the value is assigned to the variable to the left of the operator.",
"<blockquote>myVar = 5;<br>myNum = myVar;</blockquote>",
"Assigns <code>5</code> to <code>myVar</code> and then resolves <code>myVar</code> to <code>5</code> again and assigns it to <code>myNum</code>.",
"This assigns <code>5</code> to <code>myVar</code> and then resolves <code>myVar</code> to <code>5</code> again and assigns it to <code>myNum</code>.",
"<hr>",
"Assign the value <code>7</code> to variable <code>a</code>.",
"Assign the contents of <code>a</code> to variable <code>b</code>."