Skip to content

Commit 7f81a90

Browse files
Christene BennettChristene Bennett
authored andcommitted
small edit to closure.js
1 parent 75a50c7 commit 7f81a90

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

assignments/array-methods.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@ console.log(ticketPriceTotal);
107107
// Now that you have used .forEach(), .map(), .filter(), and .reduce(). I want you to think of potential problems you could solve given the data set and the 5k fun run theme. Try to create and then solve 3 unique problems using one or many of the array methods listed above.
108108

109109
// Problem 1
110+
// Find the number of small size shirts that are needed for the run
110111

111112
// Problem 2
113+
//Sort the list of runners alphabetically by last name to help make sign-in easier
112114

113-
// Problem 3
115+
// Problem 3

assignments/closure.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// ==== Challenge 1: Write your own closure ====
2-
// console.log(`******************** closure ********************`);
2+
console.log(`******************** closure ********************`);
33
// Write a simple closure of your own creation. Keep it simple!
44
function bestSnacks() {
55
let snack = "popcorn";
@@ -17,10 +17,10 @@ bestSnacks();
1717
const counterInitializer = () => {
1818
// Return a function that when invoked increments and returns a counter variable.
1919
let count = 0;
20-
debugger;
20+
// debugger;
2121
return () => {
2222
count += 1;
23-
debugger;
23+
// debugger;
2424
console.log(count);
2525
}
2626
};

0 commit comments

Comments
 (0)