diff options
author | tristantheb <tristantheb@users.noreply.github.com> | 2021-03-14 10:46:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-14 10:46:21 +0100 |
commit | 1188b49868558f2a81021fb70954b80296081d2b (patch) | |
tree | e3f11e83364c61b45d04e0c359d9fa202ba90654 /files/fr/web/javascript | |
parent | 2e669634a327fee4d607caddb28d6ab4c2a8971f (diff) | |
download | translated-content-1188b49868558f2a81021fb70954b80296081d2b.tar.gz translated-content-1188b49868558f2a81021fb70954b80296081d2b.tar.bz2 translated-content-1188b49868558f2a81021fb70954b80296081d2b.zip |
FIX: Fix the semicolon by a correct comma line 232 - Issue #101 (#157)
* FIX: Fix the semicolon by a correct comma line 232
* Update tags with missing Reference tag
Diffstat (limited to 'files/fr/web/javascript')
-rw-r--r-- | files/fr/web/javascript/reference/operators/destructuring_assignment/index.html | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/files/fr/web/javascript/reference/operators/destructuring_assignment/index.html b/files/fr/web/javascript/reference/operators/destructuring_assignment/index.html index 3cde0fef57..45e0cd77af 100644 --- a/files/fr/web/javascript/reference/operators/destructuring_assignment/index.html +++ b/files/fr/web/javascript/reference/operators/destructuring_assignment/index.html @@ -2,8 +2,13 @@ title: Affecter par décomposition slug: Web/JavaScript/Reference/Operators/Destructuring_assignment tags: + - Destructuration + - Affectation de déstructuration - ECMAScript 2015 + - ES6 - JavaScript + - Caractéristiques de la langue + - Déstructuration des objets imbriqués et des tableaux - Opérateur - Reference translation_of: Web/JavaScript/Reference/Operators/Destructuring_assignment @@ -225,7 +230,7 @@ console.log(truc); // true</pre> <p>Une variable peut recevoir une valeur par défaut lors de la décomposition si la propriété correspondante de l'objet vaut <code>undefined</code>.</p> -<pre class="brush: js">const {a = 10; b = 5} = {a: 3}; +<pre class="brush: js">const {a = 10, b = 5} = {a: 3}; console.log(a); // 3 console.log(b); // 5</pre> |