πŸ“Š JavaScript
Q. 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) None of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (C) It returns the undefined value

Explanation: If the return statement does not have an associated expression, it returns the undefined value.

Explanation by: Mr. Dubey
If the return statement does not have an associated expression, it returns the undefined value.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
157
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
96%
Success Rate