Changes

Understanding JavaScript Functions

280 bytes added, 18:46, 24 April 2007
Returning a Value from a Function
== Returning a Value from a Function ==
 
The ''return'' statement is used to return a value from a function and the assignment (=) value is used to accept that ''return'' value at the point that the function is called.
 
As an exaqmple, we will declare a function that adds together two arguments and returns the result: