From ccb88cadf35f7b9b174c05b9fe2dd4928752c758 Mon Sep 17 00:00:00 2001 From: Dmytro Yarmak Date: Tue, 8 Sep 2015 10:58:50 +0300 Subject: [PATCH] Add output block to "Iterate with JavaScript While Loops" challange --- seed/challenges/basic-javascript.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/seed/challenges/basic-javascript.json b/seed/challenges/basic-javascript.json index 11c6b67e72..f273197e75 100644 --- a/seed/challenges/basic-javascript.json +++ b/seed/challenges/basic-javascript.json @@ -859,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",