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/lesson3/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
@@ -121,7 +121,7 @@ Write a `$()` selector that selects the input box. Look at the
121
121
Try calling the `.val()` method on that object. It should return the
122
122
current contents of the input box.
123
123
124
-
Now try calling the same method with a string parameter. See how this time it changes what the input box contains?
124
+
Now try calling the same method with a string parameter. See how this time it changes what the input box contains?
125
125
126
126
> This is a common pattern in jQuery: calling a method with a new value as a parameter will change that property, while calling it without a parameter will return the current value.
Copy file name to clipboardExpand all lines: js/lesson5/tutorial.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ We will be using the **POST**, **PUT** and **GET** requests, and other things we
21
21
|**POST**| Create a new resource. |
22
22
23
23
24
-
##Request using jQuery
24
+
##Request using jQuery
25
25
26
26
To use **POST** and **PUT** requests we must specify the `type` in the `ajax()` call that we introduced in the previous lesson.
27
27
@@ -35,20 +35,20 @@ $.ajax({
35
35
});
36
36
```
37
37
38
-
##Exercise - Hangman!
38
+
##Exercise - Hangman!
39
39
40
40

41
41
42
42
[Download](https://gist.github.com/despo/c76a7bd0bef66713a9ac/download) the exercise files or clone them directly from Github `git clone https://gist.github.com/c76a7bd0bef66713a9ac.git`
43
43
44
-
###API
44
+
###API
45
45
| type | resource | parameters | description |
46
46
| ---- | -------- | ---------- | ----------- |
47
47
|**POST**|`http://hangman-api.herokuapp.com/hangman`| - | Create a new game |
48
48
|**PUT**|`http://hangman-api.herokuapp.com/hangman`|`{ token: game token, letter: guess }`| Guess a letter |
49
49
|**GET**|`http://hangman-api.herokuapp.com/hangman`|`{ token: game token }`| Get solution |
0 commit comments