JavaScript Functions: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 8: Line 8:
}
}
</syntaxhighlight>
</syntaxhighlight>
=Function Parameters and Arguments=
The names listed in the function definition are the function '''parameters'''.


=Declaration=
=Declaration=

Revision as of 01:06, 10 December 2020

Internal

Overview

function name(parameter1, parameter2, parameter3) {
  // code to be executed
}

Function Parameters and Arguments

The names listed in the function definition are the function parameters.

Declaration

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function

Function Expressions

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/function