Compare Revisions

function

Revision 53122:

Revision 53122 by Chris Chittleborough on

Revision 53123:

Revision 53123 by tiangolo on

Title:
function
function
Slug:
JavaScript/Reference/Operators/function
JavaScript/Reference/Operators/function
Content:

Revision 53122
Revision 53123
nn7    <p>
8      &nbsp;
9    </p>
n13    <table class="fullwidth-table">n16    <table class="fullwidth-table" style="width: 889px; height: 4
 >8px;">
nn31        <tr>
32          <td>
33            ECMA Version:
34          </td>
35          <td>
36            ECMA-262, Edition 3
37          </td>
38        </tr>
n34function [<i>name</i>]([<i>param1</i>, <i>param2</i>, ..., <i>parn45function [<em>name</em>]([<em>param1</em>, <em>param2</em>, ..., 
>amN</i>]) {><em>paramN</em>]) {
35   <i>statements</i>46   <em>statements</em>
n69      A function expression is very similar to and has almost then80      A function expression is very similar to and has almost the
> same syntax as a function declaration (see <a href="en/Core_Java> same syntax as a function declaration (see <a href="/en/Core_Jav
>Script_1.5_Reference/Statements/function">function</a> for detail>aScript_1.5_Reference/Statements/function" title="en/Core_JavaScr
>s). See <a href="en/Core_JavaScript_1.5_Reference/Functions">Func>ipt_1.5_Reference/Statements/function">function</a> for details).
>tions</a> for information on the differences between function sta> See <a href="/En/Core_JavaScript_1.5_Reference/Functions_and_fun
>tements and function expressions.>ction_scope" title="En/Core_JavaScript_1.5_Reference/Functions_an
 >d_function_scope">Functions</a> for information on the difference
 >s between function statements and function expressions.
n108      <code><a href="en/Core_JavaScript_1.5_Reference/Functions">n119      <code><a href="/En/Core_JavaScript_1.5_Reference/Functions_
>Functions</a></code>, <code><a href="en/Core_JavaScript_1.5_Refer>and_function_scope" title="En/Core_JavaScript_1.5_Reference/Funct
>ence/Global_Objects/Function">Function</a></code>, <code><a href=>ions_and_function_scope">Functions</a></code>, <code><a href="/en
>"en/Core_JavaScript_1.5_Reference/Statements/function">function s>/Core_JavaScript_1.5_Reference/Global_Objects/Function" title="en
>tatement</a></code>>/Core_JavaScript_1.5_Reference/Global_Objects/Function">Function<
 >/a></code>, <code><a href="/en/Core_JavaScript_1.5_Reference/Stat
 >ements/function" title="en/Core_JavaScript_1.5_Reference/Statemen
 >ts/function">function statement</a></code>
n111      <br>n122      &nbsp;
tt124    <p>
113    <div class="noinclude"></div>{{ languages( { "es": "es/Refere125      {{ languages( { "es": "es/Referencia_de_JavaScript_1.5/Oper
>ncia_de_JavaScript_1.5/Operadores/Especiales/function", "fr": "fr>adores/Especiales/function", "fr": "fr/R\u00e9f\u00e9rence_de_Jav
>/R\u00e9f\u00e9rence_de_JavaScript_1.5_Core/Op\u00e9rateurs/Op\u0>aScript_1.5_Core/Op\u00e9rateurs/Op\u00e9rateurs_sp\u00e9ciaux/L\
>0e9rateurs_sp\u00e9ciaux/L\'op\u00e9rateur_function", "ja": "ja/C>'op\u00e9rateur_function", "ja": "ja/Core_JavaScript_1.5_Referenc
>ore_JavaScript_1.5_Reference/Operators/Special_Operators/function>e/Operators/Special_Operators/function_Operator", "pl": "pl/Dokum
>_Operator", "pl": "pl/Dokumentacja_j\u0119zyka_JavaScript_1.5/Ope>entacja_j\u0119zyka_JavaScript_1.5/Operatory/Operatory_specjalne/
>ratory/Operatory_specjalne/Operator_function" } ) }}>Operator_function" } ) }}
126    </p>

Back to History