A

Admin • 833K Points
Coach

Q. Which statement is used to exit a function early?

  • (A) return
  • (B) exit
  • (C) stop
  • (D) break
  • Correct Answer - Option(A)
  • Views: 29
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin

The 'return' statement exits a function and optionally returns a value.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.