Skip to content

Commit 3477f43

Browse files
authored
Merge branch 'master' into patch-2
2 parents 1134db5 + 58ba1f0 commit 3477f43

File tree

16 files changed

+162
-25
lines changed

16 files changed

+162
-25
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
!.gitignore
55
!.gitpod.yml
66
!.gitpod.Dockerfile
7+
!learn.json
78
!bc.json
89
!README.md
910

.gitpod.Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ FROM gitpod/workspace-full:latest
22

33
USER gitpod
44

5-
RUN npm i jest@24.8.0 breathecode-cli@1.2.73 -g
5+
RUN npm i jest@24.8.0 -g
6+
RUN npm i learnpack@0.0.88 -g && learnpack plugins:install learnpack-node@0.0.17

.gitpod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ports:
66
onOpen: open-preview
77
tasks:
88
- command: >
9-
bc run -l node;
9+
learnpack start
1010
github:
1111
prebuilds:
1212
# enable for the master/default branch (defaults to true)

README.md

Lines changed: 27 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
1-
<table>
2-
<tr>
3-
<td><img src="https://assets.breatheco.de/apis/img/images.php?blob&random&cat=icon&tags=4geeks,32"></td>
4-
<td>
5-
<h1 align="center"> Looping in Javascript Tutorial & Exercises</h1>
6-
<img src="https://img.shields.io/github/last-commit/4geeksacademy/javascript-arrays-exercises-tutorial" />
7-
<a href="https://breatheco.de"><img src="https://img.shields.io/badge/certified-BreatheCode-blue" /></a>
8-
<a href="https://twitter.com/4geeksacademy"><img src="https://img.shields.io/twitter/follow/4geeksacademy?style=social&logo=twitter" alt="follow on twitter"></a>
9-
<a href="https://twitter.com/alesanchezr"><img src="https://img.shields.io/twitter/follow/alesanchezr?style=social&logo=twitter" alt="follow on Twitter"></a>
10-
<a href="https://gitpod.io#https://github.com/4GeeksAcademy/javascript-beginner-exercises-tutorial.git"><img src="https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod" /></a>
11-
</td>
12-
</tr>
13-
</table>
1+
# Looping in Javascript Tutorial & Exercises
2+
3+
<a href="https://www.4geeksacademy.co"><img height="280" align="right" src="https://github.com/4GeeksAcademy/javascript-arrays-exercises-tutorial/blob/master/badge-loop.png"></a>
4+
5+
> By [@alesanchezr](https://twitter.com/alesanchezr) and [other contributors](https://github.com/4GeeksAcademy/javascript-arrays-exercises-tutorial/graphs/contributors) at [4Geeks Academy](https://4geeksacademy.co/)
6+
7+
![last commit](https://img.shields.io/github/last-commit/4geeksacademy/javascript-arrays-exercises-tutorial)
8+
[![build by developers](https://img.shields.io/badge/build_by-Developers-blue)](https://breatheco.de)
9+
[![build by developers](https://img.shields.io/twitter/follow/4geeksacademy?style=social&logo=twitter)](https://twitter.com/4geeksacademy)
10+
1411

1512
Dozens of looping exercises to sharpen your looping skills with for, forEach, map, filter, looping a dictionary, looping bidimentional arrays, adding conditions to loops, finding an element, and more!
1613

@@ -31,20 +28,31 @@ We need you! These exercises are built and maintained in collaboration with cont
3128

3229
## Local Installation
3330

34-
1) Make sure you have the [breathecode-cli](https://github.com/breatheco-de/breathecode-cli) installed and `node.js` version 10+ and python version 3+. This is the command to install the breathecode-cli
31+
1. Install learnpack, the package manager for learning tutorials and the html compiler plugin for learnpack, make sure you also have node.js 12+:
32+
3533
```
36-
$ npm i breathecode-cli -g
34+
$ npm i learnpack -g
35+
$ learnpack plugins:install learnpack-python
3736
```
3837

39-
2) Clone or download this repository. Once you finish downloading, you will find a new folder with a subdirectory "exercises" that contains all the exercises within.
38+
2. Download this particular exercise using learnpack and `cd` into the folder:
4039

41-
3) Start the tutorial/exercises by running the following command from the root of the project:
40+
```
41+
$ learnpack download python-beginner-programming-exercises
42+
$ cd python-beginner-programming-exercises
43+
```
44+
45+
Note: Once you finish downloading, you will find a "exercises" folder that contains all the exercises within.
46+
47+
3. Start the tutorial/exercises by running the following command at the same level were your bc.json file is:
4248

4349
```sh
44-
$ npm i jest@24.8.0
45-
$ breathecode run
50+
$ npm i jest@24.8.0 -g
51+
$ learnpack start
4652
```
4753

54+
Note: The exercises have automatic grading but its very rigid and string, my recomendation is to ignore the tests and use them only as a recomendation or you can get frustrated.
55+
4856
## How are the exercises organized?
4957

5058
Each exercise is a small react application containing the following files:

badge-loop.png

36.7 KB
Loading

exercises/01-Welcome/README.es.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
intro: https://www.youtube.com/watch?v=ooHdelGf0gI
3+
---
4+
5+
6+
# Bienvenido a los Loops
7+
8+
Practicaremos los bucles en javascript para se sienta cómodo con ellos. Recomendamos ver el siguiente video [Breve video sobre bucles](https://www.youtube.com/watch?v=U3ZlQSOcOI0) before starting:
9+
10+
1. For loop.
11+
2. forEach.
12+
3. while.
13+
4. map.
14+
5. filter.
15+
6. find.
16+
7. Diccionario de bucles (objetos literales).
17+
18+
Haga click en `next →` cuando se encuentre listo para iniciar los ejercicios.
19+
20+
21+
***
22+
Si necesitas ir a un ejercicio en particular puedes seleccionar en el menu superior.
23+
<p align="center">
24+
<img src="./menu.png">
25+
</p>
26+
Y seleccionar el curso
27+
<p align="center">
28+
<img src="./menu2.png">
29+
</p>

exercises/01-Welcome/menu.png

6.45 KB
Loading

exercises/01-Welcome/menu2.png

26.8 KB
Loading
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1+
---
2+
tutorial: https://www.youtube.com/watch?v=no9mCu-tvaM
3+
---
4+
15
# `05.3` Add Items to Array
26

37
Add 2 random integers to the "arr" list (no need to loop) and print the array on the console
48

59
## 💡 Tips:
610

711
- You can use the Math.random() and Math.floor() functions to get random numbers, you should do that inside the loop
8-
- You have to use the `.push(item)` function to add the new random number to the array.
12+
- You have to use the `.push(item)` function to add the new random number to the array.

exercises/07.2-Letter-Counter/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
---
2-
tutorial: https://www.youtube.com/watch?v=PLCVs_S8Skwp9x
2+
3+
tutorial: https://www.youtube.com/watch?v=oLTidCuisew
4+
35
---
46

57
# `07.2` Letter Counter

0 commit comments

Comments
 (0)