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
{{ message }}
Repository navigation
Commit 8a2f0f0
Browse filesBrowse the repository at this point in the historyBrowse files
@@ -53,57 +54,46 @@ Don't cheat - but if you get stuck ... http://stackoverflow.com/questions/750486
53
54
</script>
54
55
```
55
56
56
-
Rewrite to Async:
57
+
5.Rewrite the code below to Async:
57
58
58
59
```js
59
60
1.
60
61
61
-
var sum =calculateSum(2, 6);
62
+
let sum =calculateSum(2, 6);
62
63
console.log(sum);
63
64
64
65
2.
65
66
66
-
var results =$.getJSON('http://myapi.com');
67
+
let results =$.getJSON('http://myapi.com');
67
68
showResults(results);
68
69
69
70
3.
70
71
71
-
var sum =calculateSum(2, 6);
72
+
let sum =calculateSum(2, 6);
72
73
if (sum >8) {
73
74
console.log('larger than 8');
74
75
}
75
76
76
77
4.
77
78
78
-
var data =$.getJSON('http://myapi.com');
79
+
let data =$.getJSON('http://myapi.com');
79
80
data =data.map(function (x) { return x *8; });
80
81
81
82
writeDataToFile(data);
82
83
```
83
84
84
85
85
-
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?
86
+
### Step 2: Feedback
86
87
87
-
TODO !!!
88
+
- Create at least 2 issues (bug / feature / code improvement) on another teams github repository. Do this in pairs.
89
+
- Solve the issue proposed by another students in your github repo. More info [here](https://hackyourfuture.slack.com/files/michahell/F31BX1XT6/Merging_a_local_branch_into_master)
88
90
89
-
Choose two "GET" API endpoints from http://reqres.in
90
-
Use $.getJSON to load data from those two endpoints
91
-
Display the data on your web page.
92
-
It should not matter which endpoint is loaded first, the data should always look the same (you can add "?delay=" after the endpoint to simulate a delay).
91
+
## Step 3: Pair programming homework
93
92
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)
93
+
You will complete the TicTacToe game we started building in class. The code we build in class is available here: *(will be here by the end of the day)*.
94
+
One of your teammates should fork the repo. Work in this repository *together* so you can see who wrote which code. Make a Pull Request to hand in this part of the homework.
0 commit comments