Skip to content

Commit afae86b

Browse files
committed
adding index.html and updating readme
1 parent d192ca8 commit afae86b

File tree

2 files changed

+36
-9
lines changed

2 files changed

+36
-9
lines changed

README.md

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,36 @@
33

44
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.
55

6-
### Task 1: Set Up The Project With Git
6+
## Task 1: Set Up The Project With Git
7+
78
* [ ] Fork the project into your GitHub user account
89
* [ ] Clone the forked project into a directory on your machine
910
* [ ] 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
1115

12-
### Task 2: Callbacks
1316
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+
1520
* [ ] 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.
1721

22+
* [ ] Solve the problems listed. Save the stretch problems until you have completed Tasks 1-4.
23+
24+
## Task 3: Array Methods
1825

19-
### Task 3: Array Methods
2026
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+
2128
* [ ] Review the contents of the [array-methods.js](assignments/array-methods.js) file.
29+
2230
* [ ] Complete the problems provided to you
31+
2332
* [ ] 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.
2433

25-
### Task 4: Closures
34+
## Task 4: Closures
35+
2636
We have learned that closures allow us to access values in scope that have already been invoked.
2737

2838
**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
3343

3444
## Stretch Goals
3545

36-
37-
3846
* [ ] 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.
3947

4048
* [ ] Look up what an IIFE is in JavaScript and experiment with them

assignments/index.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!doctype html>
2+
3+
<html lang="en">
4+
<head>
5+
<meta charset="utf-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
8+
<title>JS II</title>
9+
10+
<script src="array-methods.js"></script>
11+
<script src="callbacks.js"></script>
12+
<script src="closure.js"></script>
13+
<script src="stretch-function-conversion.js"></script>
14+
</head>
15+
16+
<body>
17+
<h1>JS II - Check your work in the console!</h1>
18+
</body>
19+
</html>

0 commit comments

Comments
 (0)