Merge pull request #2505 from issyl0/fix_typo_iterate_with_js

In the while loop iterator section, advise while loops, not for loops
This commit is contained in:
Berkeley Martinez
2015-08-22 17:22:14 -07:00

View File

@ -843,7 +843,7 @@
"<code>&thinsp;&thinsp;ourArray.push(i);</code>",
"<code>&thinsp;&thinsp;i++;</code>",
"<code>}</code>",
"Let's try getting a for loop to work by pushing values to an array."
"Let's try getting a while loop to work by pushing values to an array."
],
"tests":[
"assert(editor.getValue().match(/while/g), 'You should be using a while loop for this.');",