Skip to content

Instantly share code, notes, and snippets.

View dkeesey's full-sized avatar
💭
Looking for work

Dean Keesey dkeesey

💭
Looking for work
View GitHub Profile
@dkeesey
dkeesey / iterators.js
Created September 29, 2019 17:52 — forked from aegorenkov/iterators.js
HardParts Promises and Iterators
// Type JavaScript here and click "Run Code" or press Ctrl + s
console.log('Hello, world!');
// CHALLENGE 1
function sumFunc(arr) {
// YOUR CODE HERE
let accumulator = 0;
for (let i = 0; i < arr.length; i++) {
accumulator += arr[i];