diff options
Diffstat (limited to 'files/pl/conflicting/web/javascript/reference/operators_de3666cd349851054926d5e52fced70d/index.html')
-rw-r--r-- | files/pl/conflicting/web/javascript/reference/operators_de3666cd349851054926d5e52fced70d/index.html | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/files/pl/conflicting/web/javascript/reference/operators_de3666cd349851054926d5e52fced70d/index.html b/files/pl/conflicting/web/javascript/reference/operators_de3666cd349851054926d5e52fced70d/index.html new file mode 100644 index 0000000000..86a341668a --- /dev/null +++ b/files/pl/conflicting/web/javascript/reference/operators_de3666cd349851054926d5e52fced70d/index.html @@ -0,0 +1,77 @@ +--- +title: Operatory przypisania +slug: >- + conflicting/Web/JavaScript/Reference/Operators_de3666cd349851054926d5e52fced70d +tags: + - JavaScript + - Operator +translation_of: Web/JavaScript/Reference/Operators#Assignment_operators +translation_of_original: Web/JavaScript/Reference/Operators/Assignment_Operators +original_slug: Web/JavaScript/Referencje/Operatory/Operatory_przypisania +--- +<div>{{jsSidebar("Operators")}}</div> + +<h2 id="Podsumowanie" name="Podsumowanie">Podsumowanie</h2> + +<p>Operator przypisania przypisuje wartość swego prawego operandu do operandu lewego.</p> + +<p>Podstawowy operator przypisania to znak równości (<code>=</code>), który przypisuje wartość prawego operandu do lewego. To znaczy, że <code>x = y</code> przypisuje wartość zmiennej <code>y</code> do zmiennej <code>x</code>. Pozostałe operatory przypisania to zwykle skróty dla operacji standardowych, jak w poniższej tabeli.</p> + +<table class="standard-table"> + <tbody> + <tr> + <th>Operator skrócony</th> + <th>Znaczenie</th> + </tr> + <tr> + <td><code>x += y</code></td> + <td><code>x = x + y</code></td> + </tr> + <tr> + <td><code>x -= y</code></td> + <td><code>x = x - y</code></td> + </tr> + <tr> + <td><code>x *= y</code></td> + <td><code>x = x * y</code></td> + </tr> + <tr> + <td><code>x /= y</code></td> + <td><code>x = x / y</code></td> + </tr> + <tr> + <td><code>x %= y</code></td> + <td><code>x = x % y</code></td> + </tr> + <tr> + <td><code>x <<= y</code></td> + <td><code>x = x << y</code></td> + </tr> + <tr> + <td><code>x >>= y</code></td> + <td><code>x = x >> y</code></td> + </tr> + <tr> + <td><code>x >>>= y</code></td> + <td><code>x = x >>> y</code></td> + </tr> + <tr> + <td><code>x &= y</code></td> + <td><code>x = x & y</code></td> + </tr> + <tr> + <td><code>x ^= y</code></td> + <td><code>x = x ^ y</code></td> + </tr> + <tr> + <td><code>x |= y</code></td> + <td><code>x = x | y</code></td> + </tr> + </tbody> +</table> + +<p> + </p><div class="noinclude"> </div> +<p></p> + +<p> </p> |