[Solved] What does this function returns exactly? [closed]


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.

See Returning values and Returning without argument

5

solved What does this function returns exactly? [closed]