34,333
edits
Changes
→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: