Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b28aa28

Browse files
committed
cleaned up
1 parent 1b561d3 commit b28aa28

File tree

10 files changed

+36
-51
lines changed

10 files changed

+36
-51
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ This is the description of the classes for JavaScript fundamentals.
88
|Week|Topic|Read|Homework|
99
|----|-----|----|--------|
1010
|0.|Preparation for first JavaScript session|[Reading Week 0](https://github.com/HackYourFuture/JavaScript/tree/master/Week0)|-|
11-
|1.|Values, Operators and Variables. Primitives Types ( Strings, Numbers, Arrays, Functions, Objects literals) Conditions|[Reading Week 1](https://github.com/HackYourFuture/JavaScript/tree/master/Week1)| [Homework Week 1](https://github.com/HackYourFuture/JavaScript/tree/master/Week1/MAKEME.md)|
12-
|2.|Functions, For and While Loops,String and Array Manipulations |[Reading Week 2](https://github.com/HackYourFuture/JavaScript/tree/master/Week2)|[Homework Week 2](https://github.com/HackYourFuture/JavaScript/tree/master/Week2/MAKEME.md)|
13-
|3.|String and Array Manipulations|[Reading Week 3](https://github.com/HackYourFuture/JavaScript/tree/master/Week3)|[Homework Week 3](https://github.com/HackYourFuture/JavaScript/tree/master/Week3/MAKEME.md)|
14-
|4.|Closures, Scope and Immediately Invoked function expression, Callbacks and Promises|[Reading Week 4](https://github.com/HackYourFuture/JavaScript/tree/master/Week4/README.md)|[Homework Week 4](https://github.com/HackYourFuture/JavaScript/tree/master/Week4/MAKEME.md)|
15-
|5.|Async VS Sync, XHTTP Requests|[Reading Week 5](https://github.com/HackYourFuture/JavaScript/tree/master/Week5/README.md)|[Homework Week 5](https://github.com/HackYourFuture/JavaScript/tree/master/Week5/MAKEME.md)|
16-
|6.|Recap: Closures, Promises, Callbacks, XHTTP Requests, Objects and Instances|[Reading Week 6](https://github.com/HackYourFuture/JavaScript/tree/master/Week6/README.md)|[Homework Week 6](https://github.com/HackYourFuture/JavaScript/tree/master/Week6/MAKEME.md)|
11+
|1.|Values <br>•Operators<br>• Variables.<br> •Primitives Types [Strings, Numbers, Arrays, Functions, Objects literals]<br>• Conditions|[Reading Week 1](https://github.com/HackYourFuture/JavaScript/tree/master/Week1)| [Homework Week 1](https://github.com/HackYourFuture/JavaScript/tree/master/Week1/MAKEME.md)|
12+
|2.|Functions<br>• For and While Loops <br>• String and Array Manipulations |[Reading Week 2](https://github.com/HackYourFuture/JavaScript/tree/master/Week2)|[Homework Week 2](https://github.com/HackYourFuture/JavaScript/tree/master/Week2/MAKEME.md)|
13+
|3.|String and Array Manipulations|[Reading Week 3](https://github.com/HackYourFuture/JavaScript/tree/master/Week3)|[Homework Week 3](https://github.com/HackYourFuture/JavaScript/tree/master/Week3/MAKEME.md)|
14+
|4.|Closures <br>• Scope<br>• Immediately Invoked function expressions <br> • Callbacks<br>• Promises|[Reading Week 4](https://github.com/HackYourFuture/JavaScript/tree/master/Week4/README.md)|[Homework Week 4](https://github.com/HackYourFuture/JavaScript/tree/master/Week4/MAKEME.md)|
15+
|5.|Async VS Sync <br>• XHTTP Requests|[Reading Week 5](https://github.com/HackYourFuture/JavaScript/tree/master/Week5/README.md)|[Homework Week 5](https://github.com/HackYourFuture/JavaScript/tree/master/Week5/MAKEME.md)|
16+
|6.|Recap: <br>• Closures<br>• Promises<br>• Callbacks<br>• XHTTP Requests<br>• Objects and Instances|[Reading Week 6](https://github.com/HackYourFuture/JavaScript/tree/master/Week6/README.md)|[Homework Week 6](https://github.com/HackYourFuture/JavaScript/tree/master/Week6/MAKEME.md)|
1717
|7.|Test Driven Development|TBA|TBA|
1818
|8.|Test Driven Development|TBA|TBA|
1919
|9.|Test Driven Development|TBA|TBA|

Week0/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Reading material for your first JavaScript lesson:
1+
# Reading material for your first JavaScript lesson:
22

33
## Lesson 1
44

Week1/MAKEME.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
##Assignments week 1:
1+
## Assignments week 1:
22

33
Create a .js file that prints something to the console
44
Create a function that takes 3 arguments and returns the sum of the three arguments.

Week1/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Reading material for the second lecture:
1+
# Reading material for the second lecture:
22

33
- Functions ~ http://eloquentjavascript.net/03_functions.html
44
- Program structure ~ http://eloquentjavascript.net/02_program_structure.html

Week2/MAKEME.md

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
##Assignment week 2
1+
## Assignment week 2
22

3-
1.
4-
Create a function that takes two objects as parameters and compares them. You will actually need to write two functions - one that compares with == and one that compares with ===. Remember that objects can have objects inside of them so you'll need to find a way to compare every element of every object (types and values). For example:
3+
1. Create a function that takes two objects as parameters and compares them. You will actually need to write two functions - one that compares with == and one that compares with ===. Remember that objects can have objects inside of them so you'll need to find a way to compare every element of every object (types and values). For example:
54

65
```
76
var obj1 = {
@@ -23,8 +22,7 @@ var obj2 = {
2322

2423
in our example we'll say that obj1 == obj2 is true and obj1 === obj2 is false. Make sure you can see why before you write any code!
2524

26-
2.
27-
We saw that we can pass functions as arguments to other functions. Your task is to write a function that takes another function as an argument and runs it.
25+
2. We saw that we can pass functions as arguments to other functions. Your task is to write a function that takes another function as an argument and runs it.
2826

2927
```
3028
function foo(func) {
@@ -48,17 +46,13 @@ Don't cheat! Seriously - try it first.
4846
http://jsfiddle.net/jimschubert/85M4z/
4947
http://stackoverflow.com/questions/22395357/how-to-compare-two-arrays-are-equal-using-javascript
5048

51-
3.
52-
https://www.freecodecamp.com/challenges/comparisons-with-the-logical-and-operator
49+
3. https://www.freecodecamp.com/challenges/comparisons-with-the-logical-and-operator
5350

54-
4.
55-
https://www.freecodecamp.com/challenges/record-collection
51+
4. https://www.freecodecamp.com/challenges/record-collection
5652

57-
5.
58-
https://www.freecodecamp.com/challenges/iterate-over-arrays-with-map
53+
5. https://www.freecodecamp.com/challenges/iterate-over-arrays-with-map
5954

60-
6.
61-
We did the following example in class:
55+
6. We did the following example in class:
6256

6357
```
6458
var o1 = { foo: 'bar' };

Week2/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
#Reading material for the third lecture:
1+
# Reading material for the third lecture:
22

33
TBA

Week3/MAKEME.md

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ http://www.learn-js.org/en/Callbacks
2626

2727
### Homework
2828

29-
1.
30-
We learned a little bit about callbacks in JS. A callback is simply a function passed to another function that gets executed (run) after a potentially long running operation has completed. There is another function called `setTimeout` that will wait a specified period of time and then execute a function. For example:
29+
1. We learned a little bit about callbacks in JS. A callback is simply a function passed to another function that gets executed (run) after a potentially long running operation has completed. There is another function called `setTimeout` that will wait a specified period of time and then execute a function. For example:
3130

3231
```
3332
function doIt() {
@@ -64,31 +63,26 @@ We learned a little bit about callbacks in JS. A callback is simply a function p
6463
```
6564
6665
67-
2.
68-
Please solve this problem using:
66+
2. Please solve this problem using:
6967
https://www.freecodecamp.com/challenges/repeat-a-string-repeat-a-string
7068
1. A for loop
7169
2. A while loop
7270
3. A do loop
7371
74-
3.
75-
Some practice with objects
72+
3. Some practice with objects
7673
https://www.freecodecamp.com/challenges/construct-javascript-objects-with-functions
7774
78-
4.
79-
Nested loops
75+
4. Nested loops
8076
https://www.freecodecamp.com/challenges/nesting-for-loops
8177
8278
83-
5.
84-
We did some work with arrays - `var arr = [1,2,3]`
79+
5. We did some work with arrays - `var arr = [1,2,3]`
8580
We can also nest arrays inside arrays like this `var arr2d = [[1,2], [3,4], [5,6]]` (for math people you can think of this as a matrix)
8681
How would you print all the items of an array with 3 dimensions?
8782
How about with K dimensions?
8883
What if you didn't know how deep the array was nested? (You don't have to write code for this but think about it)
8984
90-
6.
91-
Here are two functions that look like they do the something similar but they print different results. Please explain what's going on here.
85+
6. Here are two functions that look like they do the something similar but they print different results. Please explain what's going on here.
9286
9387
```
9488
var x = 9;
@@ -110,8 +104,7 @@ console.log(y);
110104
```
111105
If you are confused please run the code and then consult the Google for "javascript pass by value pass by reference"
112106
113-
7.
114-
Next time we're going to cover the following Javascript topics:
107+
7. Next time we're going to cover the following Javascript topics:
115108
- Immediately Invoked Function Execution (IIFE) and anonymous functions
116109
- The this variable
117110
- Scope and closures

Week3/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# Reading material for the fourth lecture
33

4-
Function call() - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/call
5-
Function apply() - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/apply
6-
Function bind() - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind
7-
Arguments - https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Functions/arguments
4+
Function call() - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/call
5+
Function apply() - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/apply
6+
Function bind() - https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind
7+
Arguments - https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Functions/arguments

Week5/MAKEME.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,35 +12,31 @@ http://stackoverflow.com/questions/111102/how-do-javascript-closures-work
1212

1313
### Homework
1414

15-
1.
16-
Let's continue to learn a little more about scope and Closures.
15+
1. Let's continue to learn a little more about scope and Closures.
1716

1817
Please solve the following three questions as a warm up to thinking about scope.
1918

2019
https://www.freecodecamp.com/challenges/global-scope-and-functions
2120
https://www.freecodecamp.com/challenges/local-scope-and-functions
2221
https://www.freecodecamp.com/challenges/global-vs-local-scope-in-functions
2322

24-
2.
25-
What will be the output of the following code - and more importantly - WHY?
23+
2. What will be the output of the following code - and more importantly - WHY?
2624

2725
```
2826
for (var i = 0; i < 3; i++) {
2927
setTimeout(function() { alert(i); }, 1000 + i);
3028
}
3129
```
3230

33-
3.
34-
Write a function that would allow you to do this:
31+
3. Write a function that would allow you to do this:
3532

3633
```
3734
var addSix = createBase(6);
3835
addSix(10); // returns 16
3936
addSix(21); // returns 27
4037
```
4138

42-
4.
43-
You will need to create an HTML document out of the below snippet to run the below code. A hint - the code is syntactically correct but doesn't do what you would expect. Can you see why and fix it?
39+
4. You will need to create an HTML document out of the below snippet to run the below code. A hint - the code is syntactically correct but doesn't do what you would expect. Can you see why and fix it?
4440

4541
Don't cheat - but if you get stuck ... http://stackoverflow.com/questions/750486/javascript-closure-inside-loops-simple-practical-example
4642

@@ -95,5 +91,5 @@ writeDataToFile(data);
9591
3. Display the data on your web page.
9692
4. It should not matter which endpoint is loaded first, the data should *always* look the same (you can add "?delay=<num>" after the endpoint to simulate a delay).
9793

98-
- Create at least 1 issue (bug / feature / code improvement) on another students github repository. Do this in pairs.
99-
- solve the issue proposed by another student in your github repo. More info [here](https://hackyourfuture.slack.com/files/michahell/F31BX1XT6/Merging_a_local_branch_into_master)
94+
Create at least 1 issue (bug / feature / code improvement) on another students github repository. Do this in pairs.
95+
solve the issue proposed by another student in your github repo. More info [here](https://hackyourfuture.slack.com/files/michahell/F31BX1XT6/Merging_a_local_branch_into_master)

Week5/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
## Reading for lecture 6
2+
3+
TBA

0 commit comments

Comments
 (0)