What is the purpose of a return statement in a function?
(a) Returns the value and continues executing rest of the statements, if any
(b) Returns the value and stops the program
(c) Returns the value and stops executing the function
(d) Stops executing the function and returns the value
This question was posed to me in exam.
Question is taken from Defining and Invoking Functions in chapter Lexical Structures of JavaScript