JavaScript syntax: Difference between revisions

Content deleted Content added
Line 1,466:
==Functions==
 
A [[functionFunction (computer programming)|function]] is a block with a (possibly empty) parameter list that is normally given a name. A function may use local variables. If you exit the function without a return statement, the value {{mono|undefined}} is returned.
 
<syntaxhighlight lang="javascript+genshitext">