aboutsummaryrefslogtreecommitdiff
path: root/files/pl/web/javascript/referencje/operatory/operator_function
diff options
context:
space:
mode:
authorFlorian Merz <me@fiji-flo.de>2021-02-11 14:49:24 +0100
committerFlorian Merz <me@fiji-flo.de>2021-02-11 14:49:24 +0100
commitde5c456ebded0e038adbf23db34cc290c8829180 (patch)
tree2819c07a177bb7ec5f419f3f6a14270d6bcd7fda /files/pl/web/javascript/referencje/operatory/operator_function
parent8260a606c143e6b55a467edf017a56bdcd6cba7e (diff)
downloadtranslated-content-de5c456ebded0e038adbf23db34cc290c8829180.tar.gz
translated-content-de5c456ebded0e038adbf23db34cc290c8829180.tar.bz2
translated-content-de5c456ebded0e038adbf23db34cc290c8829180.zip
unslug pl: move
Diffstat (limited to 'files/pl/web/javascript/referencje/operatory/operator_function')
-rw-r--r--files/pl/web/javascript/referencje/operatory/operator_function/index.html144
1 files changed, 0 insertions, 144 deletions
diff --git a/files/pl/web/javascript/referencje/operatory/operator_function/index.html b/files/pl/web/javascript/referencje/operatory/operator_function/index.html
deleted file mode 100644
index 1d13d1a3c0..0000000000
--- a/files/pl/web/javascript/referencje/operatory/operator_function/index.html
+++ /dev/null
@@ -1,144 +0,0 @@
----
-title: Operator function
-slug: Web/JavaScript/Referencje/Operatory/Operator_function
-tags:
- - Dokumentacja_JavaScript
- - Dokumentacje
- - JavaScript
- - Wszystkie_kategorie
-translation_of: Web/JavaScript/Reference/Operators/function
----
-<p> </p>
-
-<h3 id="Podsumowanie" name="Podsumowanie">Podsumowanie</h3>
-
-<p>Operator <code>function</code> jest używany do definiowania funkcji wewnątrz wyrażenia.</p>
-
-<h2 id="Sk.C5.82adnia" name="Sk.C5.82adnia">Składnia</h2>
-
-<pre class="eval">function [<em>nazwa</em>]([<em>argument1[</em>, <em>argument2[</em>, ..., <em>argumentN</em>]]]) { <em>instrukcje </em>}
-</pre>
-
-<h3 id="Parametry" name="Parametry">Parametry</h3>
-
-<dl>
- <dt><code>nazwa</code></dt>
- <dd>Nazwa funkcji. Może zostać pominięta, w takim wypadku funkcja staje się anonimowa. Nazwa jest tylko lokalna i istnieje wewnętrz funkcji.</dd>
-</dl>
-
-<dl>
- <dt><code>argumentN</code></dt>
- <dd>Nazwa argumentu, który ma zostać przekazany do funkcji. Funkcja może posiadać do 255 argumentów.</dd>
-</dl>
-
-<dl>
- <dt><code>instrukcje</code></dt>
- <dd>Instrukcje, które stanowią ciało funkcji.</dd>
-</dl>
-
-<h2 id="Opis" name="Opis">Opis</h2>
-
-<p>Wyrażenie funkcji jest bardzo podobne do deklaracji funkcji i posiada niemal identyczną składnię (zobacz <a href="pl/Dokumentacja_j%c4%99zyka_JavaScript_1.5/Polecenia/function">function</a>, aby uzyskać bardziej szczegółowe informacje). Główną różnicą pomiędzy wyrażeniem a definicją jest <em>nazwa funkcji, </em>która może zostać pominięta i utworzyć funkcję<em> anonimową</em>. Zobacz <a href="pl/Dokumentacja_j%c4%99zyka_JavaScript_1.5/Funkcje">Funkcje</a>, aby uzyskać informacje o różnicach między instrukcjami funkcji a wyrażeniami funkcji.</p>
-
-<h2 id="Przyk.C5.82ady" name="Przyk.C5.82ady">Przykłady</h2>
-
-<p>Poniższy przykład definiuje nienazwaną funkcję i przypisują ją do <code>x</code>. Funkcja zwraca kwadrat jej argumentów:</p>
-
-<pre>var x = function(y) {
- return y * y;
-};
-</pre>
-
-<h3 id="Nazwane_wyrażenie">Nazwane wyrażenie</h3>
-
-<pre><code>var math = {
- 'factorial': function factorial(n) {
- if (n &lt;= 1)
- return 1;
- return n * factorial(n - 1);
- }
-};</code></pre>
-
-<h2 id="Specyfikacja">Specyfikacja</h2>
-
-<table>
- <tbody>
- <tr>
- <th scope="col">Specyfikacja</th>
- <th scope="col">Status</th>
- <th scope="col">Komentarze</th>
- </tr>
- <tr>
- <td>{{SpecName('ESDraft', '#sec-function-definitions', 'Function definitions')}}</td>
- <td>{{Spec2('ESDraft')}}</td>
- <td> </td>
- </tr>
- <tr>
- <td>{{SpecName('ES6', '#sec-function-definitions', 'Function definitions')}}</td>
- <td>{{Spec2('ES6')}}</td>
- <td> </td>
- </tr>
- <tr>
- <td>{{SpecName('ES5.1', '#sec-13', 'Function definition')}}</td>
- <td>{{Spec2('ES5.1')}}</td>
- <td> </td>
- </tr>
- <tr>
- <td>{{SpecName('ES3', '#sec-13', 'Function definition')}}</td>
- <td>{{Spec2('ES3')}}</td>
- <td>Zaimplementowano w JavaScript 1.5.</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Wsparcie_przeglądarek">Wsparcie przeglądarek</h2>
-
-<p>{{CompatibilityTable}}</p>
-
-<table>
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-
-<table>
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- <td>{{CompatVersionUnknown}}</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Zobacz_także">Zobacz także</h2>
-
-<p><code><a href="pl/Dokumentacja_j%c4%99zyka_JavaScript_1.5/Funkcje">Funkcje</a></code>, <code><a href="pl/Dokumentacja_j%c4%99zyka_JavaScript_1.5/Obiekty/Function">Function</a></code>, <code><a href="pl/Dokumentacja_j%c4%99zyka_JavaScript_1.5/Polecenia/function">Polecenie function</a></code></p>