Skip to content

Commit e5daac9

Browse files
committed
1 parent bec97d0 commit e5daac9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/functions-and-arrays.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,18 @@ function sumNumbers(arr) {
4646
}
4747
sumNumbers(numbers);
4848

49+
// extra #3
50+
//const numbers = [6, 12, 1, 18, 13, 16, 2, 1, 8, 10];
51+
52+
//function sumNumbers(array) {
53+
// let total = 0
54+
// array.forEach(element => {
55+
// total += element
56+
// })
57+
// return total;
58+
// }
59+
//sumNumbers(numbers);
60+
4961

5062
// Iteration #3.1 Bonus:
5163
const mixedArr = [6, 12, 'miami', 1, true, 'barca', '200', 'lisboa', 8, 10];

0 commit comments

Comments
 (0)