Using Nasal functions: Difference between revisions

Jump to navigation Jump to search
m
Line 26: Line 26:
</syntaxhighlight>
</syntaxhighlight>


This will first call the inner hello() function, and afterwards the outer function. Note how only the outer function call has parentheses.
This will first call the inner hello() function, and afterwards the outer function. Note how only the outer function call has a terminating semicolon.


You may be wondering what's happening here by calling the hello() function this way, in a nested fashion. The truth is, functions don't always have empty parentheses - the parentheses are there to pass function arguments (parameters) to the function:
You may be wondering what's happening here by calling the hello() function this way, in a nested fashion. The truth is, functions don't always have empty parentheses - the parentheses are there to pass function arguments (parameters) to the function:

Navigation menu