From bf8e099b9c8b3c60d60b3712b4fc97b052c39887 Mon Sep 17 00:00:00 2001 From: julieng Date: Tue, 3 Aug 2021 08:03:23 +0200 Subject: convert content to md --- .../operators/bitwise_and_assignment/index.md | 43 ++++++++++------------ 1 file changed, 20 insertions(+), 23 deletions(-) (limited to 'files/fr/web/javascript/reference/operators/bitwise_and_assignment') diff --git a/files/fr/web/javascript/reference/operators/bitwise_and_assignment/index.md b/files/fr/web/javascript/reference/operators/bitwise_and_assignment/index.md index 3300032225..cf970acb34 100644 --- a/files/fr/web/javascript/reference/operators/bitwise_and_assignment/index.md +++ b/files/fr/web/javascript/reference/operators/bitwise_and_assignment/index.md @@ -8,43 +8,40 @@ tags: - Operator - Reference browser-compat: javascript.operators.bitwise_and_assignment -translation-of: Web/JavaScript/Reference/Operators/Bitwise_AND_assignment --- -
{{jsSidebar("Operators")}}
+{{jsSidebar("Operators")}} -

L'opérateur d'affectation après ET binaire (&=) utilise la représentation binaire des deux opérandes, applique un ET logique entre chaque puis affecte le résultat de l'opération à la variable représentée par l'opérande gauche.

+L'opérateur d'affectation après ET binaire (`&=`) utilise la représentation binaire des deux opérandes, applique un ET logique entre chaque puis affecte le résultat de l'opération à la variable représentée par l'opérande gauche. -
{{EmbedInteractiveExample("pages/js/expressions-bitwise-and-assignment.html")}}
+{{EmbedInteractiveExample("pages/js/expressions-bitwise-and-assignment.html")}} -

Syntaxe

+## Syntaxe -
-Opérateur : x &= y
-Signification :  x  = x & y
-
+```js +Opérateur : x &= y +Signification : x = x & y +``` -

Exemples

+## Exemples -

Utiliser l'affectation après ET binaire

+### Utiliser l'affectation après ET binaire -
+```js
 let a = 5;
 // 5:     00000000000000000000000000000101
 // 2:     00000000000000000000000000000010
-a &= 2; // 0
-
+a &= 2; // 0 +``` -

Spécifications

+## Spécifications -

{{Specifications}}

+{{Specifications}} -

Compatibilité des navigateurs

+## Compatibilité des navigateurs -

{{Compat}}

+{{Compat}} -

Voir aussi

+## Voir aussi - +- [Les opérateurs d'affectation dans le guide JavaScript](/fr/docs/Web/JavaScript/Guide/Expressions_and_Operators#assignment) +- [L'opérateur ET binaire](/fr/docs/Web/JavaScript/Reference/Operators/Bitwise_AND) -- cgit v1.2.3-54-g00ecf