Skip to content

Commit 6983ca4

Browse files
authored
Typos en version part ii translation jobs (#71)
* Added an explanation block on the 3 options of the for loops + ortho It may be intriguing to know how the 3 option may be given I also corrected errors on sentences where I found necessary & reformulated some others. * Fixed, link to variable chapter & typos & paragraphs
1 parent 79d2a76 commit 6983ca4

File tree

14 files changed

+35
-25
lines changed

14 files changed

+35
-25
lines changed

en/SUMMARY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
- [Mutable](objects/mutable.md)
4848
- [Reference](objects/reference.md)
4949
- [Prototype](objects/prototype.md)
50-
- [Delete](objects/delete.md)
50+
- [Delete Operator](objects/delete.md)
5151
- [Enumeration](objects/enumeration.md)
5252
- [Date and Time](date-and-time.md)
5353
- [JSON](json.md)

en/exercises/console.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ console.log(age);
2323

2424
### 💡 Hints:
2525

26-
* Visit the [variabl](../basics/variables.md)[e](../basics/variables.md) chapter to understand more about variables.
26+
* Visit the [variable](../basics/variables.md) chapter to understand more about variables.

en/exercises/objects.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Objects are the collection of `key`, `value` pairs and each pair of key-value ar
88

99
### 📝 Tasks:
1010

11-
Given a Doe family that includes two-member, where each member's information is provided in form of an object. 
11+
Given a Doe family that includes two members, where each member's information is provided in form of an object. 
1212

1313
```javascript
1414
let person = {
@@ -37,7 +37,7 @@ let family = {
3737

3838
* [ ] Find a way to print the name of the first member of the Doe family in a `console`.
3939
* [ ] Change the fourth `luckyNumbers` of the second member of the Doe family to `33`.
40-
* [ ] Add a new member to the family by creating a new person (`Jimmy,` `Doe`, `13`, `male`, `[1, 2, 3, 4]`, `null`) and update the member list.
40+
* [ ] Add a new member to the family by creating a new person (`Jimmy` `Doe`, `13`, `male`, `[1, 2, 3, 4]`, `null`) and update the member list.
4141
* [ ] Print the `SUM` of the lucky numbers of Doe family in the `console`. 
4242

4343
### 💡 Hints:

en/loops/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ description: Loops are control structures that allow you to execute a block of c
88
# Chapter 7
99
# Loops
1010

11-
Loops are repetitive conditions where one variable in the loop changes. Loops are handy, if you want to run the same code over and over again, each time with a different value.
11+
Loops are repetitive instructions where one variable in the loop changes. Loops are handy, if you want to run the same code over and over again, each time with a different value.
1212

1313
Instead of writing:
1414

en/loops/dowhile.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
chapter: 7
33
pageNumber: 52
4-
description: The do...while statement creates a loop that executes a specified statement until the test condition evaluates to be false. The condition is evaluated after executing the statement.
4+
description: The do...while statement creates a loop that executes specified bloc statement until the test condition evaluates to be false. The condition is evaluated after executing the block.
55
---
66
# Do...While
77

8-
The do...while statement creates a loop that executes a specified statement until the test condition evaluates to be false. The condition is evaluated after executing the statement. The syntax for do... while is
8+
The do...while statement creates a loop that executes specified bloc statement until the test condition evaluates to be false. The condition is evaluated after executing the block. The syntax for do... while is
99

1010
```javascript
1111
do {

en/loops/for.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,16 @@ description: A for loop is a powerful control structure used to execute a block
88
The easiest form of a loop is the for statement. This one has a syntax that is similar to an if statement, but with more options:
99

1010
```javascript
11-
for (condition; end condition; change) {
11+
for (initialization; end condition; change) {
1212
// do it, do it now
1313
}
1414
```
1515

16+
## Explanation:
17+
18+
* In the `initialization` part, executed before the first iteration, initialize your loop variable
19+
* In the `end codition` part, put a condition that may be checked before each iteration. The moment the condition becomes `false`, the loop ends.
20+
* In the `change` part, tell the program how to update the loop variable.
1621
Let's see how to execute the same code ten-times using a `for` loop:
1722

1823
```javascript
@@ -57,6 +62,8 @@ The value of iterable objects such as `Arrays`, `Strings`, `Maps`, `NodeLists` c
5762
let language = "JavaScript";
5863
let text = "";
5964
for (let x of language) {
60-
text += x;
65+
text += x;
6166
}
67+
68+
// Result: language = 'JavaScript'
6269
```

en/loops/while.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ For example, the loop in this example will repetitively execute its block of cod
1717

1818
```javascript
1919
var i = 0,
20-
x = "";
20+
x = "";
2121
while (i < 5) {
2222
x = x + "The number is " + i;
2323
i++;

en/miscellaneous/building-and-deploying.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Developing and deploying a JavaScript application involves a series of steps tha
99

1010
## Setting up the Development Environment
1111

12-
Before commencing the development process, it is essential for the developer to ensure that Node.js and npm (Node Package Manager) are installed on their system. These vital tools can be acquired from the official website of Node.js [Node.js](https://nodejs.org/). Additionally, the developer should select an appropriate code editor or Integrated Development Environment (IDE) for JavaScript development. Some of the popular choices include [Visual Studio Code](https://code.visualstudio.com/), [Sublime Text](https://code.visualstudio.com/), and [WebStorm](https://www.jetbrains.com/webstorm/).
12+
Before commencing the development process, it is essential for the developer to ensure that Node.js and npm (Node Package Manager) are installed on their system. These vital tools can be acquired from the official website of Node.js [Node.js](https://nodejs.org/). Additionally, the developer should select an appropriate code editor or Integrated Development Environment (IDE) for JavaScript development. Some of the popular choices include [Visual Studio Code](https://code.visualstudio.com/), [Sublime Text](https://www.sublimetext.com/), and [WebStorm](https://www.jetbrains.com/webstorm/).
1313

1414
The installation of Node.js and npm provides access to the essential tools and libraries required for JavaScript development. The careful selection of the appropriate code editor or IDE can substantially enhance productivity and code quality.
1515

en/miscellaneous/currying.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
---
22
chapter: 19
33
pageNumber: 95
4-
description: Currying is an advanced technique in functional programming of transforming a function with multiple arguments into a sequence of nesting functions. It transforms a function from callable f(a,b,c) into callable as f(a)(b)(c). It doesn’t call a function instead it transforms it.
4+
description: Currying is an advanced technique in functional programming that consists of transforming a function with multiple arguments into a sequence of nesting functions. It transforms a function from callable f(a,b,c) into callable as f(a)(b)(c). It doesn’t call a function instead it transforms it.
55
---
66
# Currying
77

8-
`Currying` is an advanced technique in functional programming of transforming a function with multiple arguments into a sequence of nesting functions. It transforms a function from callable `f(a,b,c)` into callable as `f(a)(b)(c)`. It doesn’t call a function instead it transforms it.
8+
`Currying` is an advanced technique in functional programming that consists of transforming a function with multiple arguments into a sequence of nesting functions. It transforms a function from callable `f(a,b,c)` into callable as `f(a)(b)(c)`. It doesn’t call a function instead it transforms it.
9+
910

1011
To get a better understanding of currying let’s create a simple `add` function add that takes three arguments and returns the sum of them. Then, we create a `addCurry` function that takes a single input and returns a series of functions with its sum.
1112

en/miscellaneous/polyfills-and-transpilers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Array.prototype.filter = function (callback) {
4848
const result = [];
4949
for (let i = 0; i < this.length; i++) {
5050
// call the callback with the current element, index, and context.
51-
//if it passes the text then add the element in the new array.
51+
//if it passes the test then add the element in the new array.
5252
if (callback(this[i], i, this)) {
5353
result.push(this[i]);
5454
}

0 commit comments

Comments
 (0)