diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/functional-programming/implement-map-on-a-prototype.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/functional-programming/implement-map-on-a-prototype.md index 6ab6fc618ea..867d686d85b 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/functional-programming/implement-map-on-a-prototype.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/functional-programming/implement-map-on-a-prototype.md @@ -46,10 +46,6 @@ Array.prototype.myMap = function(callback) { // Only change code above this line return newArray; }; - -// Test case -const s = [23, 65, 98, 5]; -const doubled_s = s.myMap(item => item * 2); ``` # --solutions-- diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/functional-programming/implement-the-filter-method-on-a-prototype.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/functional-programming/implement-the-filter-method-on-a-prototype.md index 28c8c372815..3bff531c0f2 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/functional-programming/implement-the-filter-method-on-a-prototype.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/functional-programming/implement-the-filter-method-on-a-prototype.md @@ -42,10 +42,6 @@ Array.prototype.myFilter = function(callback) { // Only change code above this line return newArray; }; - -// Test case -const s = [23, 65, 98, 5]; -const odd_s = s.myFilter(item => item % 2 === 1); ``` # --solutions--