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/subtraction_assignment/index.md | 41 ++++++++++------------ 1 file changed, 19 insertions(+), 22 deletions(-) (limited to 'files/fr/web/javascript/reference/operators/subtraction_assignment') diff --git a/files/fr/web/javascript/reference/operators/subtraction_assignment/index.md b/files/fr/web/javascript/reference/operators/subtraction_assignment/index.md index ad67f469d6..dd658d604d 100644 --- a/files/fr/web/javascript/reference/operators/subtraction_assignment/index.md +++ b/files/fr/web/javascript/reference/operators/subtraction_assignment/index.md @@ -8,42 +8,39 @@ tags: - Operator - Reference browser-compat: javascript.operators.subtraction_assignment -translation-of: Web/JavaScript/Reference/Operators/Subtraction_assignment --- -
{{jsSidebar("Operators")}}
+{{jsSidebar("Operators")}} -

L'opérateur d'affectation après soustraction (-=) calcule la soustraction de l'opérande gauche par l'opérande droit puis affecte le résultat à la variable représentée par l'opérande gauche.

+L'opérateur d'affectation après soustraction (`-=`) calcule la soustraction de l'opérande gauche par l'opérande droit puis affecte le résultat à la variable représentée par l'opérande gauche. -
{{EmbedInteractiveExample("pages/js/expressions-subtraction-assignment.html")}}
+{{EmbedInteractiveExample("pages/js/expressions-subtraction-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'opérateur de soustraction et d'affectation

+### Utiliser l'opérateur de soustraction et d'affectation -
+```js
 let truc = 5;
 truc -= 2;      // 3
 truc -= 'toto'; // NaN
-
+``` -

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 de soustraction](/fr/docs/Web/JavaScript/Reference/Operators/Subtraction) -- cgit v1.2.3-54-g00ecf