From aa05d2e6691e0bdf445d6f76418d2c98c5989e37 Mon Sep 17 00:00:00 2001 From: Laura Colten Date: Thu, 25 Oct 2018 19:04:05 -0500 Subject: [PATCH] array --- 04week/gitOlympics.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 04week/gitOlympics.js diff --git a/04week/gitOlympics.js b/04week/gitOlympics.js new file mode 100644 index 000000000..310df58de --- /dev/null +++ b/04week/gitOlympics.js @@ -0,0 +1,10 @@ +'use strict'; + +const names = ['Anna', 'Laura', 'Eden', 'Eve', 'Arlo']; +const printListofOlympians = (array) => { + array.forEach(function (element) { + console.log(element); + }); +} + +printListofOlympians(names); \ No newline at end of file