What will happen if a return statement does not have an associated expression?
(a) It returns the value 0
(b) It will throw an exception
(c) It returns the undefined value
(d) It will throw an error
I got this question in examination.
This intriguing question comes from Defining and Invoking Functions in chapter Lexical Structures of JavaScript
Select the correct answer from above options
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)