From 2ccbe2641cb7844f8dc4ae2252c18b7b4a39d475 Mon Sep 17 00:00:00 2001 From: Thomas Huang Date: Thu, 5 Jan 2017 01:58:47 -0800 Subject: [PATCH] Add wbr tag on sample code --- .../object-oriented-and-functional-programming.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seed/challenges/01-front-end-development-certification/object-oriented-and-functional-programming.json b/seed/challenges/01-front-end-development-certification/object-oriented-and-functional-programming.json index 1d430a6c63..631f5c3637 100644 --- a/seed/challenges/01-front-end-development-certification/object-oriented-and-functional-programming.json +++ b/seed/challenges/01-front-end-development-certification/object-oriented-and-functional-programming.json @@ -375,7 +375,7 @@ "The accumulator is like a total that reduce keeps track of after each operation. The current value is just the next element in the array you're iterating through.", "reduce has an optional second argument which can be used to set the initial value of the accumulator. If no initial value is specified it will be the first array element and currentVal will start with the second array element.", "Here is an example of reduce being used to subtract all the values of an array:", - "
var singleVal = array.reduce(function(previousVal, currentVal) {
  return previousVal - currentVal;
}, 0);
", + "
var singleVal = array.reduce(function(previousVal, currentVal) {
  return previousVal - currentVal;
}, 0);
", "Use the reduce method to sum all the values in array and assign it to singleVal." ], "challengeSeed": [