Skip to content

Commit fa42d12

Browse files
committed
Merge pull request #220 from hackscribble/clarify-instructions-js-lesson-5
Clarifies instructions relating to displaying guesses
2 parents c92b018 + 7724d5d commit fa42d12

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

js/lesson5/tutorial.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,15 @@ $.ajax({
6969
3. Update the stored token
7070

7171
4. Update remaining attempts and display all guesses
72-
- If an attempt is not successful, append it to the `$('.attempts')` using a span with the class `wrong`
72+
- Append each attempt to the `$('.attempts')` using a span
73+
- If the attempt is successful, include the class `correct` in the span; if it is unsuccessful, include the class `wrong`
7374
- You can then find out how many wrong attempts there were using `$('.wrong').length+1;`
7475

7576
3. On the 7th failure, retrieve the solution using the **GET** request
7677

7778
1. Display the solution, hide the input field and allow a user to start a new game
7879

79-
4. **Bonus** don't process letters, guesses that have already been attempted or empty space
80+
4. **Bonus** don't process numbers, guesses that have already been attempted or empty space
8081

8182
1. You can use jQuery's `$.isNumeric(character))` to check if a letter is a number
8283

@@ -99,4 +100,4 @@ This ends our **HTTP Requests, AJAX and APIs** tutorial. Is there something you
99100

100101
Now that you are familiar with HTTP requests, AJAX and APIs, how about you go away and create a webpage that pulls in all instagram pictures with a certain hashtag.
101102

102-
Or embed a google map onto a webpage with it pointing to a destination of your choice in London.
103+
Or embed a google map onto a webpage with it pointing to a destination of your choice in London.

0 commit comments

Comments
 (0)