From 7714b0c4b73b5950a87a9732aca4473fdc7ccbfe Mon Sep 17 00:00:00 2001 From: ahstro Date: Fri, 21 Aug 2015 21:22:25 +0200 Subject: [PATCH 1/3] Moved myArray into 'Only change code'-block --- challenges/basic-javascript.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/challenges/basic-javascript.json b/challenges/basic-javascript.json index 87d00dbfbb..76ef3ce83a 100644 --- a/challenges/basic-javascript.json +++ b/challenges/basic-javascript.json @@ -432,9 +432,9 @@ "challengeSeed": [ "//var array = [\"John\", 23];", "", - "var myArray = [];", "// Only change code below this line.", "", + "var myArray = [];", "", "// Only change code above this line.", "// We use this function to show you the value of your variable in your output box.", @@ -457,9 +457,9 @@ ], "challengeSeed":[ "var ourArray = [[\"the universe\", \"everything\", 42]];", - "var myArray = [];", "// Only change code below this line.", "", + "var myArray = [];", "", "// Only change code above this line.", "// We use this function to show you the value of your variable in your output box.", From 02e486ddded420c470a01696689d3e7dc741dd9e Mon Sep 17 00:00:00 2001 From: Jakob Dahl Date: Fri, 21 Aug 2015 22:06:04 +0200 Subject: [PATCH 2/3] 2431 changed wording on testresult --- challenges/basic-bonfires.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/challenges/basic-bonfires.json b/challenges/basic-bonfires.json index f4349f7ca0..5ed1ce12ec 100644 --- a/challenges/basic-bonfires.json +++ b/challenges/basic-bonfires.json @@ -462,7 +462,7 @@ "tests": [ "assert.deepEqual(slasher([1, 2, 3], 2), [3], 'should drop the first two elements');", "assert.deepEqual(slasher([1, 2, 3], 0), [1, 2, 3], 'should return all elements when n < 1');", - "assert.deepEqual(slasher([1, 2, 3], 9), [], 'should return an empty array when n >= array.length');" + "assert.deepEqual(slasher([1, 2, 3], 9), [], 'should return an empty array');" ], "MDNlinks": [ "Array.slice()", From 8d9b94920efda8f5af4919ca931e9dd18a41d4a3 Mon Sep 17 00:00:00 2001 From: Jakob Dahl Date: Fri, 21 Aug 2015 22:54:03 +0200 Subject: [PATCH 3/3] 2431 reworded 2nd test --- challenges/basic-bonfires.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/challenges/basic-bonfires.json b/challenges/basic-bonfires.json index 5ed1ce12ec..539ce1d349 100644 --- a/challenges/basic-bonfires.json +++ b/challenges/basic-bonfires.json @@ -461,7 +461,7 @@ ], "tests": [ "assert.deepEqual(slasher([1, 2, 3], 2), [3], 'should drop the first two elements');", - "assert.deepEqual(slasher([1, 2, 3], 0), [1, 2, 3], 'should return all elements when n < 1');", + "assert.deepEqual(slasher([1, 2, 3], 0), [1, 2, 3], 'should return all elements');", "assert.deepEqual(slasher([1, 2, 3], 9), [], 'should return an empty array');" ], "MDNlinks": [