+ 1

Function Return in JavaScript

Hi friends , What is the meaning of this phrase? If the function was invoked from a statement, JavaScript will "return" to execute the code after the invoking statement. This is the full text: Function Return 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": Its source is w3schools

2nd Sep 2020, 2:38 PM
Morteza R.g
Morteza R.g - avatar
2 Answers
+ 2
Meaning if the function was called, javascript will return an output after the calling the function.
2nd Sep 2020, 2:48 PM
Scorpionking_2 [Inactive]
Scorpionking_2 [Inactive] - avatar