aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/javascript/reference/operators/remainder_assignment
diff options
context:
space:
mode:
authorjulieng <julien.gattelier@gmail.com>2021-08-03 08:03:23 +0200
committerSphinxKnight <SphinxKnight@users.noreply.github.com>2021-09-03 08:08:25 +0200
commitbf8e099b9c8b3c60d60b3712b4fc97b052c39887 (patch)
treec101746d082c9581c94f5937519c7d0e2f4af8cb /files/fr/web/javascript/reference/operators/remainder_assignment
parent844f5103992238c0c23203286dad16a466e89c97 (diff)
downloadtranslated-content-bf8e099b9c8b3c60d60b3712b4fc97b052c39887.tar.gz
translated-content-bf8e099b9c8b3c60d60b3712b4fc97b052c39887.tar.bz2
translated-content-bf8e099b9c8b3c60d60b3712b4fc97b052c39887.zip
convert content to md
Diffstat (limited to 'files/fr/web/javascript/reference/operators/remainder_assignment')
-rw-r--r--files/fr/web/javascript/reference/operators/remainder_assignment/index.md41
1 files changed, 19 insertions, 22 deletions
diff --git a/files/fr/web/javascript/reference/operators/remainder_assignment/index.md b/files/fr/web/javascript/reference/operators/remainder_assignment/index.md
index 87a47940d9..a31cc9a472 100644
--- a/files/fr/web/javascript/reference/operators/remainder_assignment/index.md
+++ b/files/fr/web/javascript/reference/operators/remainder_assignment/index.md
@@ -8,43 +8,40 @@ tags:
- Operator
- Reference
browser-compat: javascript.operators.remainder_assignment
-translation-of: Web/JavaScript/Reference/Operators/Remainder_assignment
---
-<div>{{jsSidebar("Operators")}}</div>
+{{jsSidebar("Operators")}}
-<p>L'opérateur de reste et d'affectation (<code>%=</code>) calcule le reste de la division de l'opérande gauche par l'opérande droit et affecte ce résultat à la variable représentée par l'opérande gauche.</p>
+L'opérateur de reste et d'affectation (`%=`) calcule le reste de la division de l'opérande gauche par l'opérande droit et affecte ce résultat à la variable représentée par l'opérande gauche.
-<div>{{EmbedInteractiveExample("pages/js/expressions-remainder-assignment.html")}}</div>
+{{EmbedInteractiveExample("pages/js/expressions-remainder-assignment.html")}}
-<h2 id="syntax">Syntaxe</h2>
+## Syntaxe
-<pre class="brush: js">
-<strong>Opérateur :</strong> x %= y
-<strong>Signification :</strong> x = x % y
-</pre>
+```js
+Opérateur : x %= y
+Signification : x = x % y
+```
-<h2 id="examples">Exemples</h2>
+## Exemples
-<h3 id="using_remainder_assignment">Utiliser l'opérateur de reste et d'affectation</h3>
+### Utiliser l'opérateur de reste et d'affectation
-<pre class="brush: js">
+```js
let truc = 5;
truc %= 2; // 1
truc %= 'toto'; // NaN
truc %= 0; // NaN
-</pre>
+```
-<h2 id="specifications">Spécifications</h2>
+## Spécifications
-<p>{{Specifications}}</p>
+{{Specifications}}
-<h2 id="browser_compatibility">Compatibilité des navigateurs</h2>
+## Compatibilité des navigateurs
-<p>{{Compat}}</p>
+{{Compat}}
-<h2 id="see_also">Voir aussi</h2>
+## Voir aussi
-<ul>
- <li><a href="/fr/docs/Web/JavaScript/Guide/Expressions_and_Operators#assignment">Les opérateurs d'affectation dans le guide JavaScript</a></li>
- <li><a href="/fr/docs/Web/JavaScript/Reference/Operators/Remainder">L'opérateur de reste</a></li>
-</ul>
+- [Les opérateurs d'affectation dans le guide JavaScript](/fr/docs/Web/JavaScript/Guide/Expressions_and_Operators#assignment)
+- [L'opérateur de reste](/fr/docs/Web/JavaScript/Reference/Operators/Remainder)