Home » JavaScript » JavaScript Functions » Question
  1. Do functions in JavaScript necessarily return a value?
    1. some functions do not return any value
    2. It is mandatory
    3. Not necessary
    4. Few functions return values by default
    5. None of these
Correct Option: D

Functions generally have a return statement and hence usually returns a value. Some functions which does not have a return statement returns value by default during execution.



Your comments will be displayed only after manual approval.