From a2ac4ab156695205eac73397e1fcc4eb2f79f265 Mon Sep 17 00:00:00 2001 From: Kristyn Bryan Date: Mon, 23 May 2016 16:56:49 -0400 Subject: [PATCH] Update README.md --- unit_01/w02d02/morning_exercise/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/unit_01/w02d02/morning_exercise/README.md b/unit_01/w02d02/morning_exercise/README.md index ebfd50a..303599c 100644 --- a/unit_01/w02d02/morning_exercise/README.md +++ b/unit_01/w02d02/morning_exercise/README.md @@ -78,6 +78,8 @@ Expected result: Add together all numbers in an array: ``` +arr = [8, 8, 8, 8, 8, 8, 8, 8]; + new_value = arr.reduce(function(sum, n){ return sum += n }); @@ -91,7 +93,7 @@ new_value = arr.reduce(function(sum, n){ arr = [8, 8, 8, 8, 8, 8, 8, 8]; ``` -- Return the product of the numbers in `arr`. +- Return the *product* of the numbers in `arr`.