Since no return value is specified, it returns null
. The return
statement here is optional since it does not return any value and is located at the end of the function. You can use the return
statement to jump out of the function explicitly without necessarily reaching the end of the function.
5
solved What does this function returns exactly? [closed]