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
+14-15Lines changed: 14 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
Welcome to your first JavaScript lab at Ironhack!
6
6
7
-
The goal of this exercise is to get you familiarized with the primitive data structures in JavaScript, which we have covered in class. Feel free to reference lesson materials, and don't limit yourself; be curious and use Google to explore multiple solutions.
7
+
This exercise aims to familiarize you with the primitive data structures in JavaScript, which we have covered in class. Feel free to reference lesson materials, and don't limit yourself; be curious and use Google to explore multiple solutions.
8
8
9
9
<br>
10
10
@@ -17,7 +17,7 @@ The goal of this exercise is to get you familiarized with the primitive data str
17
17
<h2>Learning Goals</h2>
18
18
</summary>
19
19
20
-
This exercise is designed to allow you practice and apply the concepts and techniques taught in class.
20
+
This exercise allows you to practice and apply the concepts and techniques taught in class.
21
21
22
22
Upon completion of this exercise, you will be able to:
23
23
@@ -36,7 +36,7 @@ The goal of this exercise is to get you familiarized with the primitive data str
36
36
37
37
## Introduction
38
38
39
-
For this **pair-programming** activity, we are going to use a [REPL](https://en.wikipedia.org/wiki/Read–eval–print_loop). To make things as simple as possible, we are going to use an in-browser JavaScript REPL that is provided by the browser-based IDE, [repl.it](https://replit.com/languages/javascript).
39
+
For this **pair-programming** activity, we will use a [REPL](https://en.wikipedia.org/wiki/Read–eval–print_loop). To make things as simple as possible, we are going to use an in-browser JavaScript REPL that is provided by the browser-based IDE, [repl.it](https://replit.com/languages/javascript).
40
40
41
41
Ready to start?
42
42
@@ -62,14 +62,14 @@ Ready to start?
62
62
Upon completion, run the following commands:
63
63
64
64
```bash
65
-
$ git add .
66
-
$ git commit -m "done"
67
-
$ git push origin master
65
+
git add .
66
+
git commit -m "done"
67
+
git push origin master
68
68
```
69
69
70
70
Create a Pull Request so that the TAs can check your work.
71
71
72
-
*You should make a PR (Pull Request) as soon as you make any significant change. You shouldn't have to wait until you're completely done with this or any other exercise to make the PR. After you do the first PR, any other time you push the changes (following the previous three steps), your change will appear automatically on the PR and your TAs will be able to check it.*
72
+
*You should make a PR (Pull Request) when you make any significant change. You shouldn't have to wait until you're completely done with this or any other exercise to make the PR. After you do the first PR, any other time you push the changes (following the previous three steps), your change will appear automatically on the PR and your TAs will be able to check it.*
73
73
74
74
<!-- ## Submission -->
75
75
@@ -97,12 +97,12 @@ Create a Pull Request so that the TAs can check your work.
97
97
98
98
3.1 Print the characters of the driver's name, separated by space, and [in capital letters](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toUpperCase), i.e., `"J O H N"`.
99
99
100
-
3.2 Print all the characters of the navigator's name, in reverse order, i.e., `"nhoJ"`.
100
+
3.2 Print all the characters of the navigator's name in reverse order, i.e., `"nhoJ"`.
101
101
102
102
3.3 Depending on the [lexicographic order](https://en.wikipedia.org/wiki/Lexicographical_order) of the strings, print: <br>
103
103
104
104
-`The driver's name goes first.` <br>
105
-
-`Yo, the navigator goes first definitely.` <br>
105
+
-`Yo, the navigator goes first, definitely.` <br>
106
106
-`What?! You both have the same name?`
107
107
108
108
### Bonus Time!
@@ -117,7 +117,7 @@ Go to the [lorem ipsum generator](http://www.lipsum.com/) website and:
117
117
118
118
#### Bonus 2:
119
119
120
-
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:
120
+
Create a new variable,`phraseToCheck`, containing some string value. Write a code to check if the value assigned to this variable is a [Palindrome](https://en.wikipedia.org/wiki/Palindrome). Here are some examples of palindromes:
121
121
122
122
- "A man, a plan, a canal, Panama!"
123
123
- "Amor, Roma"
@@ -128,7 +128,7 @@ Create a new variable `phraseToCheck` and have it contain some string value. Wri
128
128
- "put it up"
129
129
- "Was it a car or a cat I saw?" and "No 'x' in Nixon".
130
130
131
-
__IMPORTANT__: If you use Google to help you to find a solution to this iteration, you might run into some advanced solutions that use string or array methods (such as _join()_, _reverse()_, etc.). However, we want you to apply the knowledge you currently have and try to come up with a solution by just using the `for` loop and `if-else` statements with some `break` and `continue`.
131
+
__IMPORTANT__: If you use Google to help you to find a solution to this iteration, you might run into some advanced solutions that use string or array methods (such as _join()_, _reverse()_, etc.). However, we want you to apply your current knowledge and try to come up with a solution by just using the `for` loop and `if-else` statements with some `break` and `continue`.
132
132
133
133
__Happy coding!__:heart:
134
134
@@ -151,7 +151,6 @@ __Happy coding!__ :heart:
151
151
152
152
If you are stuck in your code and don't know how to solve the problem or where to start, you should take a step back and try to form a clear question about the specific issue you are facing. This will help you narrow down the problem and come up with potential solutions.
153
153
154
-
155
154
For example, is it a concept that you don't understand, or are you receiving an error message that you don't know how to fix? It is usually helpful to try to state the problem as clearly as possible, including any error messages you are receiving. This can help you communicate the issue to others and potentially get help from classmates or online resources.
156
155
157
156
Once you have a clear understanding of the problem, you will be able to start working toward the solution.
@@ -163,7 +162,7 @@ __Happy coding!__ :heart:
163
162
<summary>How do you find a length of a string in JavaScript?</summary>
164
163
<br>
165
164
166
-
To find the length of a string you can use the `length` property. Here is an example:
165
+
To find the length of a string, you can use the `length` property. Here is an example:
167
166
168
167
```js
169
168
conststr="Hello, world!"";
@@ -325,9 +324,9 @@ To check which remote repository you have cloned, run the following terminal com
325
324
```bash
326
325
git remote -v
327
326
```
328
-
If the link shown is the same as the main Ironhack repository, you will need to fork the repository to your GitHub account first, and then clone your fork to your local machine to be able to push the changes.
327
+
If the link shown is the same as the main Ironhack repository, you will need to fork the repository to your GitHub account first and then clone your fork to your local machine to be able to push the changes.
329
328
330
-
Note: You may want to make a copy of the code you have locally, to avoid losing it in the process.
329
+
Note: You should make a copy of your local code to avoid losing it in the process.
0 commit comments