A

Admin • 828.03K Points
Coach

Q. How do you write an arrow function that returns 10?

  • (A) () => return 10;
  • (B) () => 10
  • (C) => 10
  • (D) function => 10
  • Correct Answer - Option(B)
  • Views: 7
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin
Arrow functions return the value of a single expression without braces.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.