What is a return statement?

In JavaScript return means what ?

The return statement ends function execution and specifies a value to be returned to the function caller.


I have moved your question to its own thread as it didn’t belong in the thread you posted it in.