From 7efe896e12600153a1a7be1e68d0bc84586a053f Mon Sep 17 00:00:00 2001 From: Kristyn Bryan Date: Mon, 23 May 2016 15:56:33 -0400 Subject: [PATCH] Update Solutions_w02d02_morning_exercise.md --- .../Solutions_w02d02_morning_exercise.md | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/unit_01/w02d02/morning_exercise/Solutions_w02d02_morning_exercise.md b/unit_01/w02d02/morning_exercise/Solutions_w02d02_morning_exercise.md index c5d1748..5ee6837 100644 --- a/unit_01/w02d02/morning_exercise/Solutions_w02d02_morning_exercise.md +++ b/unit_01/w02d02/morning_exercise/Solutions_w02d02_morning_exercise.md @@ -22,15 +22,6 @@ arr.forEach(function(n) { => Prints a bunch of 9s to the console ``` -
-SOLUTION to .forEach - -```javascript -words = ["Ho", "Chi", "Minh", "City", "was", "once", "known", "as", "Prey", "Nokor"]; - -words.forEach(function (e){ - console.log(e.toUpperCase()); -}); ``` ##### EXERCISE: @@ -40,7 +31,15 @@ words.forEach(function (e){ words = ["Ho", "Chi", "Minh", "City", "was", "once", "known", "as", "Prey", "Nokor"]; ``` +
+SOLUTION to .forEach + +```javascript +words = ["Ho", "Chi", "Minh", "City", "was", "once", "known", "as", "Prey", "Nokor"]; +words.forEach(function (e){ + console.log(e.toUpperCase()); +}); # .map