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: README.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,24 +54,24 @@ _You should make a PR (stands for Pull Request) as soon as you make any signific
54
54
55
55
### Iteration 1: Names and Input
56
56
57
-
1.1 Create a variable `hacker1` with the driver's name.
57
+
1.1 Create a variable `hacker1` with the driver's name.
58
58
59
-
1.2 Print `"The driver's name is XXXX"`.
59
+
1.2 Print `"The driver's name is XXXX"`.
60
60
61
-
1.3 Create a variable `hacker2` with the navigator's name.
61
+
1.3 Create a variable `hacker2` with the navigator's name.
62
62
63
-
1.4 Print `"The navigator's name is YYYY"`.
63
+
1.4 Print `"The navigator's name is YYYY"`.
64
64
65
65
### Iteration 2: Conditionals
66
-
66
+
<br>
67
67
2.1. Depending on which name [is longer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/length), print:
68
68
<br>
69
69
- `The driver has the longest name, it has XX characters.` or <br>
70
70
- `It seems that the navigator has the longest name, it has XX characters.` or <br>
71
71
- `Wow, you both have equally long names, XX characters!`.
72
72
73
73
### Iteration 3: Loops
74
-
74
+
<br>
75
75
3.1 Print all the characters of the driver's name, separated by a space and [in capitals](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toUpperCase)
76
76
i.e. `"J O H N"`
77
77
@@ -86,13 +86,14 @@ _You should make a PR (stands for Pull Request) as soon as you make any signific
86
86
### Bonus Time!
87
87
88
88
#### Bonus 1:
89
+
<br>
89
90
Go to [lorem ipsum generator](http://www.lipsum.com/) and:
90
91
- Generate 3 paragraphs. Store the text in a variable type of string.
91
92
- Make your program count the number of words in the string.
92
93
- Make your program count the number of times the Latin word [`et`](https://en.wiktionary.org/wiki/et#Latin) appears.
93
94
94
95
#### Bonus 2:
95
-
96
+
<br>
96
97
Create a new variable `phraseToCheck` and have it contain some string value. Write a code that will check if the value we assigned to this variable is a [Palindrome](https://en.wikipedia.org/wiki/Palindrome). Here are some examples of palindromes:
0 commit comments