aboutsummaryrefslogtreecommitdiff
path: root/files/fr/glossary/boolean/index.html
diff options
context:
space:
mode:
authorSphinxKnight <SphinxKnight@users.noreply.github.com>2021-11-15 19:39:35 +0100
committerGitHub <noreply@github.com>2021-11-15 19:39:35 +0100
commit6f6e297fbfa7867b1f42c4245df20f4282b3b083 (patch)
treee602e617243ed4427e45c30554939818bfba8d6e /files/fr/glossary/boolean/index.html
parent34d315396ca29d7ef51ecc27eeeeeb275e9b0ba9 (diff)
downloadtranslated-content-6f6e297fbfa7867b1f42c4245df20f4282b3b083.tar.gz
translated-content-6f6e297fbfa7867b1f42c4245df20f4282b3b083.tar.bz2
translated-content-6f6e297fbfa7867b1f42c4245df20f4282b3b083.zip
Prepare Glossary section for Markdown conversion (#2971)
* Remove seoSummary and summary classes * Fix hidden blocks / code samples * Remove span cruft * Remove <font> and <style .. font..> * Remove notranslate * Remove id other than in headings * Fix pre blocks and remove style * Fix other report one offs and remove absolute urls * Remove external classes * Fixing images url
Diffstat (limited to 'files/fr/glossary/boolean/index.html')
-rw-r--r--files/fr/glossary/boolean/index.html36
1 files changed, 18 insertions, 18 deletions
diff --git a/files/fr/glossary/boolean/index.html b/files/fr/glossary/boolean/index.html
index b24b0c938d..415cfcbc96 100644
--- a/files/fr/glossary/boolean/index.html
+++ b/files/fr/glossary/boolean/index.html
@@ -10,28 +10,28 @@ tags:
translation_of: Glossary/Boolean
original_slug: Glossaire/Boolean
---
-<p>En informatique, un <strong>booléen</strong> est un type de données logique qui ne peut prendre que deux valeurs : <code>true</code><strong> </strong><em>(vrai)</em><strong> </strong>ou <code>false</code><em> (faux)</em>. Par exemple, en JavaScript, les conditions booléennes sont souvent ouvertes pour décider quelle section de code doit être exécutée (comme dans l'<a href="https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Instructions/if...else">instruction If</a>) ou répétée (comme pour une <a href="https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Instructions/for">boucle For</a>).</p>
+<p>En informatique, un <strong>booléen</strong> est un type de données logique qui ne peut prendre que deux valeurs : <code>true</code><strong> </strong><em>(vrai)</em><strong> </strong>ou <code>false</code><em> (faux)</em>. Par exemple, en JavaScript, les conditions booléennes sont souvent ouvertes pour décider quelle section de code doit être exécutée (comme dans l'<a href="/fr/docs/Web/JavaScript/Reference/Instructions/if...else">instruction If</a>) ou répétée (comme pour une <a href="/fr/docs/Web/JavaScript/Reference/Instructions/for">boucle For</a>).</p>
-<pre class="brush: js line-numbers language-js"><code class="language-js"><span class="comment token">/* JavaScript instruction if */</span>
-<span class="keyword token">if</span> <span class="punctuation token">(</span>boolean conditional<span class="punctuation token">)</span> <span class="punctuation token">{</span>
- <span class="comment token">// code à exécuter si la condition est true <em>(vrai)</em></span>
-<span class="punctuation token">}</span>
+<pre class="brush: js">/* JavaScript instruction if */
+if (boolean conditional) {
+ // code à exécuter si la condition est true (vrai)
+}
-<span class="keyword token">if</span> <span class="punctuation token">(</span>boolean conditional<span class="punctuation token">)</span> <span class="punctuation token">{</span>
- console<span class="punctuation token">.</span><span class="function token">log</span><span class="punctuation token">(</span><span class="string token">"boolean conditional resolved to true"</span><span class="punctuation token">)</span><span class="punctuation token">;</span>
-<span class="punctuation token">}</span> <span class="keyword token">else</span> <span class="punctuation token">{</span>
- console<span class="punctuation token">.</span><span class="function token">log</span><span class="punctuation token">(</span><span class="string token">"boolean conditional resolved to false"</span><span class="punctuation token">)</span><span class="punctuation token">;</span>
-<span class="punctuation token">}</span>
+if (boolean conditional) {
+ console.log("boolean conditional resolved to true");
+} else {
+ console.log("boolean conditional resolved to false");
+}
-<span class="comment token">/* JavaScript boucle for */</span>
-<span class="keyword token">for</span> <span class="punctuation token">(</span>control variable<span class="punctuation token">;</span> boolean conditional<span class="punctuation token">;</span> counter<span class="punctuation token">)</span> <span class="punctuation token">{</span>
- <span class="comment token">// </span></code> <span id="result_box" lang="fr"><span>code à exécuter répétitivement si la condition est vraie</span></span> <code class="language-js">
-<span class="punctuation token">}</span>
+/* JavaScript boucle for */
+for (control variable; boolean conditional; counter) {
+ // code à exécuter répétitivement si la condition est vraie
+}
-<span class="keyword token">for</span> <span class="punctuation token">(</span><span class="keyword token">var</span> i<span class="operator token">=</span><span class="number token">0</span><span class="punctuation token">;</span> i <span class="operator token">&lt;</span> <span class="number token">4</span><span class="punctuation token">;</span> i<span class="operator token">++</span><span class="punctuation token">)</span> <span class="punctuation token">{</span>
- console<span class="punctuation token">.</span><span class="function token">log</span><span class="punctuation token">(</span><span class="string token">"I print only when the boolean conditional is true"</span><span class="punctuation token">)</span><span class="punctuation token">;</span>
-<span class="punctuation token">}</span></code></pre>
+for (var i=0; i &lt; 4; i++) {
+ console.log("I print only when the boolean conditional is true");
+}</pre>
<h2 id="Pour_Approfondir">Pour Approfondir</h2>
@@ -45,5 +45,5 @@ original_slug: Glossaire/Boolean
<ul>
<li>L'objet JavaScript global : {{jsxref("Boolean")}}</li>
- <li><a href="https://developer.mozilla.org/fr/docs/Web/JavaScript/Structures_de_donn%C3%A9es">Structures de données JavaScript</a> sur MDN</li>
+ <li><a href="/fr/docs/Web/JavaScript/Structures_de_donn%C3%A9es">Structures de données JavaScript</a> sur MDN</li>
</ul>