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