Translate Destructuring assignment in french language by HachemiH · Pull Request #19 · javascript-tutorial/fr.javascript.info
---
# Destructuring assignment # L'affectation par décomposition
We have an object: Nous avons un objet :
```js let user = {
Write the destructuring assignment that reads: Écrivez l'affectation par décomposition qui se lit comme suit :
- `name` property into the variable `name`. - `years` property into the variable `age`. - `isAdmin` property into the variable `isAdmin` (false if absent) - Propriété `name` dans la variable `name`. - Propriété `years` dans la variable `age`. - Proprété `isAdmin` dans la variable `isAdmin` (false si absent)
The values after the assignment should be: Les valeurs après l'affectation doivent être :
```js let user = { name: "John", years: 30 };
// your code to the left side: // votre code à gauche :: // ... = user
alert( name ); // John