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: js/lesson1/tutorial.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ title: Introduction to JavaScript
7
7
8
8
**JavaScript** is a language that allows for interaction with the user, controlling the content of the browser, and altering the displayed document content.
Copy file name to clipboardExpand all lines: js/lesson5/tutorial.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,17 +7,17 @@ This is the second tutorial on HTTP Requests, AJAX and APIs. You can find the [f
7
7
8
8
## Todays lesson
9
9
10
-
In the last lesson we've explained an HTTP Requests is when we ask the server some information.
10
+
In the last lesson we learnt that an HTTP Request is when we ask the server for some information.
11
11
12
-
In the two exercises we used the **GET** request. Today we will be building a Hangman game using an existing API that will handle the game logic for us.
12
+
In the two earlier exercises we used the **GET** request. Today we will be building a Hangman game using an existing API that will handle the game logic for us.
13
13
14
14
We will be using the **POST**, **PUT** and **GET** requests, and other things we've learned in the last couple of lessons.
15
15
16
16
17
17
| Verb | Description |
18
18
| ---- | ----------- |
19
-
|**GET**|fetching a resource (e.g. /index.html will return the HTML of the page) |
20
-
|**PUT**|updating an existing resource. |
19
+
|**GET**| Fetching a resource (e.g. /index.html will return the HTML of the page) |
20
+
|**PUT**|Updating an existing resource. |
21
21
|**POST**| Create a new resource. |
22
22
23
23
@@ -69,8 +69,8 @@ $.ajax({
69
69
3. Update the stored token
70
70
71
71
4. Update remaining attempts and display all guesses
72
-
- If an attempt is not succesful, appent it to the `$('.attempts')` using a span with the class `wrong`
73
-
- You can then find out how many wrong attempts there wer using `$('.wrong').length+1;`
72
+
- If an attempt is not successful, append it to the `$('.attempts')` using a span with the class `wrong`
73
+
- You can then find out how many wrong attempts there were using `$('.wrong').length+1;`
74
74
75
75
3. On the 7th failure, retrieve the solution using the **GET** request
0 commit comments