JavaScript syntax: Difference between revisions

Content deleted Content added
add main article
Tags: Mobile edit Mobile app edit iOS app edit
Main article
Tags: Mobile edit Mobile app edit iOS app edit
Line 1,471:
 
==Functions==
{{Main|Function (computer programming)}}
 
A [[Function (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.