Add output block to "Iterate with JavaScript While Loops" challange

This commit is contained in:
Dmytro Yarmak
2015-09-08 10:58:50 +03:00
parent bdd2803923
commit ccb88cadf3

View File

@ -859,8 +859,14 @@
], ],
"challengeSeed":[ "challengeSeed":[
"var myArray = [];", "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", "type": "waypoint",