From 63be84f47f293b2006813c68191d0984a9384a30 Mon Sep 17 00:00:00 2001 From: Quincy Larson Date: Sun, 16 Aug 2015 09:12:54 -0700 Subject: [PATCH] fix some minor issues with oop challenges --- .../object-oriented-and-functional-programming.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/seed/challenges/object-oriented-and-functional-programming.json b/seed/challenges/object-oriented-and-functional-programming.json index f908201a65..422ea277b6 100644 --- a/seed/challenges/object-oriented-and-functional-programming.json +++ b/seed/challenges/object-oriented-and-functional-programming.json @@ -175,7 +175,7 @@ "difficulty":0, "description":[ "array = array.map(function(val){", - "thinsp;thinsp;return(val+1);", + "  return(val+1);", "});", "", "The map method is one of the easiest ways to iterate through an array or object there is. Let's use it now." @@ -203,8 +203,8 @@ "description":[ "Reduce can be useful for condensing and array or numbers into one value.", "var singleVal = array.reduce(function(previousVal, currentVal){", - "thinsp;thinsp;return(previousVal+currentVal);", - "}" + "  return(previousVal+currentVal);", + "});" ], "tests":[ "assert(singleVal == 30, 'singleVal should have been set to the result of you reduce operation');", @@ -229,7 +229,7 @@ "filter is a useful method that can filter out values that don't match a certain criteria", "Let's remove all the values less than six", "array = array.filter(function(val) {", - "thinsp;thinsp;return(val<4);", + "  return(val<4);", "});" ], "tests":[