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
+17-9Lines changed: 17 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,26 +3,36 @@
3
3
4
4
With some basic JavaScript principles in hand, we can now expand our skills out even further by exploring callback functions, array methods, and closure. Finish each task in order as the concepts build on one another.
5
5
6
-
### Task 1: Set Up The Project With Git
6
+
## Task 1: Set Up The Project With Git
7
+
7
8
*[ ] Fork the project into your GitHub user account
8
9
*[ ] Clone the forked project into a directory on your machine
9
10
*[ ] You are now ready to build this project with your preferred IDE
10
-
*[ ] Use `console.log()` statements to check your work.
11
+
*[ ] To test your `console.log()` statements, open up the index.html file found in the assignments folder and use the developer tools to view the console.
12
+
13
+
14
+
## Task 2: Callbacks
11
15
12
-
### Task 2: Callbacks
13
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.
14
-
*[ ] 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. **Remember that a callback function is a function that is being passed around to other functions.**
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.
19
+
15
20
*[ ] Write out each function using the `ES5``function` keyword syntax.
16
-
*[ ] Solve the problems listed. Save the stretch problems until you have completed Tasks 1-4.
17
21
22
+
*[ ] Solve the problems listed. Save the stretch problems until you have completed Tasks 1-4.
23
+
24
+
## Task 3: Array Methods
18
25
19
-
### Task 3: Array Methods
20
26
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
+
21
28
*[ ] Review the contents of the [array-methods.js](assignments/array-methods.js) file.
29
+
22
30
*[ ] Complete the problems provided to you
31
+
23
32
*[ ] 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.
24
33
25
-
### Task 4: Closures
34
+
## Task 4: Closures
35
+
26
36
We have learned that closures allow us to access values in scope that have already been invoked.
27
37
28
38
**Hint: Utilize debugger statements in your code in combination with your developer tools to easily identify closure values.**
@@ -33,8 +43,6 @@ We have learned that closures allow us to access values in scope that have alrea
33
43
34
44
## Stretch Goals
35
45
36
-
37
-
38
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.
39
47
40
48
*[ ] Look up what an IIFE is in JavaScript and experiment with them
0 commit comments