Merge pull request #2953 from dmytroyarmak/dmytroyarmak-2948

Add output block to "Iterate with JavaScript For Loops" challange
pull/2158/merge
Arsen Melikyan 2015-09-08 21:37:00 +04:00
commit 91d3959bfd
1 changed files with 15 additions and 2 deletions

View File

@ -824,8 +824,15 @@
" ourArray.push(i);",
"}",
"var myArray = [];",
"//Push the numbers zero through four to myArray using a \"for loop\" like above.",
"",
"// Only change code below this line.",
"",
"// Push the numbers zero through four to myArray using a \"for loop\" like above.",
"",
"// Only change code above this line.",
"// We use this function to show you the value of your variable in your output box.",
"// You'll learn about functions soon.",
"if(typeof(myArray) !== \"undefined\"){(function(){return myArray;})();}",
""
],
"type": "waypoint",
@ -852,8 +859,14 @@
],
"challengeSeed":[
"var myArray = [];",
"//Push the numbers zero through four to myArray",
"// Only change code below this line.",
"",
"// Push the numbers zero through four to myArray using a \"while loop\".",
"",
"// Only change code above this line.",
"// We use this function to show you the value of your variable in your output box.",
"// You'll learn about functions soon.",
"if(typeof(myArray) !== \"undefined\"){(function(){return myArray;})();}",
""
],
"type": "waypoint",