Computer Science, asked by ydcfjjcjg, 10 months ago

what is function return in javascript?​

Answers

Answered by Anonymous
3

Answer:

When JavaScript reaches a return statement, the function will stop executing.

If the function was invoked from a statement, JavaScript will "return" to execute the code after the invoking statement.

Functions often compute a return value. The return value is "returned" back to the "caller".

Answered by amritaraj
1

Answer:

Explanation:

Definition and Usage

The return statement stops the execution of a function and returns a value from that function.

Read our JavaScript Tutorial to learn all you need to know about functions. Start with the introduction chapter about JavaScript Functions and JavaScript Scope. For more detailed information, see our Function Section on Function Definitions, Parameters, Invocation and Closures.

Similar questions