You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-10Lines changed: 6 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,34 +15,30 @@ With some basic JavaScript principles in hand, we can now expand our skills out
15
15
16
16
This task focuses on getting practice with callback functions by giving you an array of values and instructions on what to do with that array.
17
17
18
-
*[ ] Review the contents of the [callbacks.js](assignments/callbacks.js) file. Notice you are given an array at the top of the page. Use that array to aid you with your callback functions.
18
+
*[ ] Review the contents of the [callbacks.js](assignments/callbacks.js) file. Notice you are given an array at the top of the page. Use that array to aid you with your functions.
19
19
20
-
*[ ] Write out each function using the `ES5``function` keyword syntax.
21
-
22
-
*[ ] Solve the problems listed. Save the stretch problems until you have completed Tasks 1-4.
20
+
*[ ] Complete the problems provided to you but skip over stretch problems until you are complete with every other JS file first.
23
21
24
22
## Task 3: Array Methods
25
23
26
24
Use `.forEach()`, `.map()`, `.filter()`, and `.reduce()` to loop over an array with 50 objects in it. The [array-methods.js](assignments/array-methods.js) file contains several challenges built around a fundraising 5K fun run event.
27
25
28
26
*[ ] Review the contents of the [array-methods.js](assignments/array-methods.js) file.
29
27
30
-
*[ ] Complete the problems provided to you
28
+
*[ ] Complete the problems provided to you but skip over stretch problems until you are complete with every other JS file first.
31
29
32
30
*[ ] Notice the last three problems are up to you to create and solve. This is an awesome opportunity for you to push your critical thinking about array methods, have fun with it.
33
31
34
32
## Task 4: Closures
35
33
36
-
We have learned that closures allow us to access values in scope that have already been invoked.
34
+
We have learned that closures allow us to access values in scope that have already been invoked (lexical scope).
37
35
38
36
**Hint: Utilize debugger statements in your code in combination with your developer tools to easily identify closure values.**
39
37
40
38
*[ ] Review the contents of the [closure.js](assignments/closure.js) file.
41
-
*[ ] Solve the problems listed. Save the stretch problems until you have completed Tasks 1-4.
42
-
*[ ] Once you have completed this task please submit a pull request against the original fork.
39
+
*[ ] Complete the problems provided to you but skip over stretch problems until you are complete with every other JS file first.
43
40
44
41
## Stretch Goals
45
42
46
-
*[ ] Arrow Function Syntax - [Check out this awesome guide for ES6 arrow syntax](https://medium.freecodecamp.org/when-and-why-you-should-use-es6-arrow-functions-and-when-you-shouldnt-3d851d7f0b26). You will see more and more arrow functions as you progress deeper into JavaScript. Use the [stretch-function-conversion.js](assignments/function-conversion.js) file as a helper challenge to showcase some of the differences between ES5 and ES6 syntax.
47
-
43
+
*[ ] Go back through the stretch problems that you skipped over and complete as many as you can.
48
44
*[ ] Look up what an IIFE is in JavaScript and experiment with them
Copy file name to clipboardExpand all lines: assignments/array-methods.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
// A local community center is holding a fund rasising 5k fun run and has invited 50 small businesses to make a small donation on their behalf for some much needed updates to their facilities. Each business has assigned a representative to attend the event along with a small donation.
1
+
// A local community center is holding a fund raising 5k fun run and has invited 50 small businesses to make a small donation on their behalf for some much needed updates to their facilities. Each business has assigned a representative to attend the event along with a small donation.
2
2
3
3
// Scroll to the bottom of the list to use some advanced array methods to help the event director gather some information from the businesses.
Copy file name to clipboardExpand all lines: assignments/callbacks.js
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
// Create a callback function and invoke the function to test your work. You have been provided an example of a problem and a solution to see how this works with our items array. Study both the problem and the solution to figure out the rest of the problems.
1
+
// Create a higher order function and invoke the callback function to test your work. You have been provided an example of a problem and a solution to see how this works with our items array. Study both the problem and the solution to figure out the rest of the problems.
0 commit comments