Skip to content

Commit e7b4733

Browse files
committed
fix: update instructions to use repl.it
1 parent 78e4fd6 commit e7b4733

File tree

1 file changed

+36
-20
lines changed

1 file changed

+36
-20
lines changed

README.md

Lines changed: 36 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,55 +2,71 @@
22

33
# LAB | JS Basic Algorithms
44

5-
Welcome to your first bootcamp exercise at Ironhack!
5+
Welcome to your first JavaScript lab at Ironhack!
66

7-
The goal of this exercise is to get you familiarized with the primitive data structures in JavaScript, which we just covered in the class. Feel free to reference lesson materials and don't limit yourself but be curious and use Google to explore multiple solutions.
8-
9-
Ready?
7+
The goal of this exercise is to get you familiarized with the primitive data structures in JavaScript, which we have covered in the class. Feel free to reference lesson materials and don't limit yourself but be curious and use Google to explore multiple solutions.
108

119
![qrjeCm](https://user-images.githubusercontent.com/76580/167263489-bd345c02-6c3b-425e-9a9c-96390dea9ba6.gif)
1210

11+
12+
1313
## Introduction
1414

15-
For this **pair-programming** activity we are going to have both people in the pair work in their own repos.
16-
At the end of the exercise, both students should have identical code in their respective repos.
15+
For this **pair-programming** activity we are going to use a [REPL](https://en.wikipedia.org/wiki/Read–eval–print_loop). You can find a REPL that runs in the browser for programming languages as JavaScript in https://repl.it/languages/babel.
1716

1817
Ready to start?
1918

20-
2119
## Requirements
2220

2321
- Fork this repo
22+
2423
- Clone this repo
25-
- Type this in the *File Tab* (left panel)
24+
25+
- Go to [repl.it](https://repl.it/languages/nodejs) and create an account (or login if you have one)
26+
27+
- Create a new reply by clicking on <kbd>+ Create Repl</kbd>
28+
29+
- Type this in the *Code Editor* (left panel)
2630

2731
```javascript
2832
console.log("I'm ready!");
2933
```
30-
- Save
31-
- Open a terminal and navigate to the directory where the script file is, then issue the following command `node js/index.js`
32-
- If you can see the message in the terminal panel (bottom), you are really ready!
3334

34-
- __After the first iteration, or later at any point, or once you finish, follow the steps for submission.__
35+
36+
37+
- Press `run ►`
38+
39+
- If you can see the message in the right side panel, you are really ready!
40+
41+
[![img](https://camo.githubusercontent.com/6aec8c457badb991e89cb96014311a46296f0dbaf3f5c17f88f8c7fab30f436c/68747470733a2f2f73332d65752d776573742d312e616d617a6f6e6177732e636f6d2f69682d6d6174657269616c732f75706c6f6164732f75706c6f61645f31376630393562396262346661346264316265653163303137633034333332372e706e67)](https://camo.githubusercontent.com/6aec8c457badb991e89cb96014311a46296f0dbaf3f5c17f88f8c7fab30f436c/68747470733a2f2f73332d65752d776573742d312e616d617a6f6e6177732e636f6d2f69682d6d6174657269616c732f75706c6f6164732f75706c6f61645f31376630393562396262346661346264316265653163303137633034333332372e706e67)
42+
43+
44+
45+
- **When you are done completely or at any point after the first iteration, copy your code into the `index.js` file and follow the steps for submission.**
46+
47+
3548

3649
## Submission
3750

3851
Upon completion, run the following commands:
3952

40-
```shell
53+
```bash
4154
$ git add .
4255
$ git commit -m "done"
4356
$ git push origin master
4457
```
45-
Create Pull Request so your TAs can check up your work.
4658

47-
_You should make a PR (stands for 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._
59+
Create a Pull Request so that the TAs can check your work.
60+
61+
*You should make a PR (stands for 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.*
4862

4963
<!-- ## Submission -->
5064

5165
<!-- When you are done and you have checked that everything works fine, click on the **Share** button and copy the link from the *Share Link* field. Send this link to your TAs so they can check up your work.
5266
![](https://s3-eu-west-1.amazonaws.com/ih-materials/uploads/upload_b2aa98f91affe5d4c5f12f216b069184.png) -->
5367

68+
69+
5470
## Instructions
5571

5672
### Iteration 1: Names and Input
@@ -70,10 +86,10 @@ _You should make a PR (stands for Pull Request) as soon as you make any signific
7086
### Iteration 3: Loops
7187
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)
7288
i.e. `"J O H N"`
73-
89+
7490
3.2 Print all the characters of the navigator's name, in reverse order.
7591
i.e. `"nhoJ"`
76-
92+
7793
3.3 Depending on the [lexicographic order](https://en.wikipedia.org/wiki/Lexicographical_order) of the strings, print: <br>
7894
- `The driver's name goes first.` <br>
7995
- `Yo, the navigator goes first definitely.` <br>
@@ -97,8 +113,8 @@ Create a new variable `phraseToCheck` and have it contain some string value. Wri
97113
- "taco cat"
98114
- "put it up"
99115
- "Was it a car or a cat I saw?" and "No 'x' in Nixon".
100-
101-
__Hint__: If you use Google to help you to find solution to this iteration, you might run into some solutions that use advanced string or array methods (such as _join()_, _reverse()_, etc.). However, try to apply the knowledge you currently have since you can build pretty nice solution with just using `for` loop, `if-else` statements with some `break` and `continue`... Just sayin' :smiley:
116+
117+
__Hint__: If you use Google to help you to find solution to this iteration, you might run into some advanced solutions that use string or array methods (such as _join()_, _reverse()_, etc.). However, try to apply the knowledge you currently have since you can build pretty nice solution with just using `for` loop, `if-else` statements with some `break` and `continue`... Just sayin' :smiley:
102118

103119
## Extra Resources
104120

@@ -107,5 +123,5 @@ Create a new variable `phraseToCheck` and have it contain some string value. Wri
107123
- [while - MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/while)
108124
- [for - MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for)
109125

110-
111126
__Happy coding!__ :heart:
127+

0 commit comments

Comments
 (0)