From f08be5516ccc9294b968dd155e4fcf2fe3973151 Mon Sep 17 00:00:00 2001 From: Natac13 Date: Thu, 3 Sep 2015 14:02:44 -0400 Subject: [PATCH 1/2] fixes filter function return conditional closes #3031 --- challenges/object-oriented-and-functional-programming.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/challenges/object-oriented-and-functional-programming.json b/challenges/object-oriented-and-functional-programming.json index 6d6b1e15e4..b7701304f1 100644 --- a/challenges/object-oriented-and-functional-programming.json +++ b/challenges/object-oriented-and-functional-programming.json @@ -236,7 +236,7 @@ "filter is a useful method that can filter out values that don't match a certain criteria", "Let's remove all the values greater than five", "array = array.filter(function(val) {", - "  return val<4;", + "  return val <= 5;", "});" ], "tests":[ From fc0e7543c1243529944b3cd92a8120f80aa043dd Mon Sep 17 00:00:00 2001 From: Natac13 Date: Thu, 3 Sep 2015 18:21:36 -0400 Subject: [PATCH 2/2] Attempt to fix unclear description Where Art Thou closes #3038 --- 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 32964b0378..9d860d3d12 100644 --- a/challenges/basic-bonfires.json +++ b/challenges/basic-bonfires.json @@ -569,7 +569,7 @@ "title": "Where art thou", "difficulty": "1.55", "description": [ - "Make a function that looks through an array (first argument) and returns an array of all objects that have equivalent property and value pair (second argument).", + "Make a function that looks through an array of objects (first argument) and returns an array of all objects that have matching property and value pairs (second argument). Each property and value pair of the source object has to be present in the object from the collection if it is to be included in the returned array.", "For example, if the first argument is [{ first: 'Romeo', last: 'Montague' }, { first: 'Mercutio', last: null }, { first: 'Tybalt', last: 'Capulet' }], and the second argument is { last: 'Capulet' }, then you must return the the third object from the array (the first argument), because it contains the property and it's value, that was passed on as the second argument.", "Remember to use Read-Search-Ask if you get stuck. Write your own code." ],