Skip to content

Commit 448b07f

Browse files
authored
Merge pull request #19 from HachemiH/master
Translate Destructuring assignment in french language
2 parents c1ee994 + 30e3c8d commit 448b07f

File tree

3 files changed

+118
-118
lines changed

3 files changed

+118
-118
lines changed

1-js/05-data-types/09-destructuring-assignment/1-destruct-user/task.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ importance: 5
22

33
---
44

5-
# Destructuring assignment
5+
# L'affectation par décomposition
66

7-
We have an object:
7+
Nous avons un objet :
88

99
```js
1010
let user = {
@@ -13,18 +13,18 @@ let user = {
1313
};
1414
```
1515

16-
Write the destructuring assignment that reads:
16+
Écrivez l'affectation par décomposition qui se lit comme suit :
1717

18-
- `name` property into the variable `name`.
19-
- `years` property into the variable `age`.
20-
- `isAdmin` property into the variable `isAdmin` (false if absent)
18+
- Propriété `name` dans la variable `name`.
19+
- Propriété `years` dans la variable `age`.
20+
- Proprété `isAdmin` dans la variable `isAdmin` (false si absent)
2121

22-
The values after the assignment should be:
22+
Les valeurs après l'affectation doivent être :
2323

2424
```js
2525
let user = { name: "John", years: 30 };
2626

27-
// your code to the left side:
27+
// votre code à gauche ::
2828
// ... = user
2929

3030
alert( name ); // John

1-js/05-data-types/09-destructuring-assignment/6-max-salary/task.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ importance: 5
22

33
---
44

5-
# The maximal salary
5+
# Le salaire maximal
66

7-
There is a `salaries` object:
7+
Il y a un objet `salaries` :
88

99
```js
1010
let salaries = {
@@ -14,9 +14,9 @@ let salaries = {
1414
};
1515
```
1616

17-
Create the function `topSalary(salaries)` that returns the name of the top-paid person.
17+
Créer la fonction `topSalary(salaries)` qui renvoie le nom de la personne la mieux payée.
1818

19-
- If `salaries` is empty, it should return `null`.
20-
- If there are multiple top-paid persons, return any of them.
19+
- Si `salaries` est vide, devrait retourner `null`.
20+
- S'il y a plusieurs personnes les mieux payées, renvoyez-en une.
2121

22-
P.S. Use `Object.entries` and destructuring to iterate over key/value pairs.
22+
P.S. Utilisez `Object.entries` et la décomposition pour parcourir les paires clé / valeur.

0 commit comments

Comments
 (0)