Merge pull request #12519 from no-stack-dub-sack/fix/minor-grammar-issue
changed 'backward' to 'backwards' in challenge copy
This commit is contained in:
@ -5174,12 +5174,12 @@
|
|||||||
"id": "56105e7b514f539506016a5e",
|
"id": "56105e7b514f539506016a5e",
|
||||||
"title": "Count Backwards With a For Loop",
|
"title": "Count Backwards With a For Loop",
|
||||||
"description": [
|
"description": [
|
||||||
"A for loop can also count backwards, so long as we can define the right conditions.",
|
"A <code>for</code> loop can also count backwards, as long as the right conditions are defined.",
|
||||||
"In order to count backwards by twos, we'll need to change our <code>initialization</code>, <code>condition</code>, and <code>final-expression</code>.",
|
"For example, in order to count backwards by twos, we need to change our <code>initialization</code>, <code>condition</code>, and <code>final-expression</code>.",
|
||||||
"We'll start at <code>i = 10</code> and loop while <code>i > 0</code>. We'll decrement <code>i</code> by 2 each loop with <code>i -= 2</code>.",
|
"We'll start at <code>i = 10</code> and loop while <code>i > 0</code>. We'll decrement <code>i</code> by 2 each loop with <code>i -= 2</code>.",
|
||||||
"<blockquote>var ourArray = [];<br>for (var i=10; i > 0; i-=2) {<br> ourArray.push(i);<br>}</blockquote>",
|
"<blockquote>var ourArray = [];<br>for (var i=10; i > 0; i-=2) {<br> ourArray.push(i);<br>}</blockquote>",
|
||||||
"<code>ourArray</code> will now contain <code>[10,8,6,4,2]</code>.",
|
"<code>ourArray</code> will now contain <code>[10,8,6,4,2]</code>.",
|
||||||
"Let's change our <code>initialization</code> and <code>final-expression</code> so we can count backward by twos by odd numbers.",
|
"Let's change our <code>initialization</code> and <code>final-expression</code> so we can count backwards by twos by odd numbers.",
|
||||||
"<h4>Instructions</h4>",
|
"<h4>Instructions</h4>",
|
||||||
"Push the odd numbers from 9 through 1 to <code>myArray</code> using a <code>for</code> loop."
|
"Push the odd numbers from 9 through 1 to <code>myArray</code> using a <code>for</code> loop."
|
||||||
],
|
],
|
||||||
|
Reference in New Issue
Block a user