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