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:
@ -843,7 +843,7 @@
|
||||
"<code>  ourArray.push(i);</code>",
|
||||
"<code>  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.');",
|
||||
|
Reference in New Issue
Block a user