A

Admin • 828.03K Points
Coach

Q. How can you write an arrow function?

  • (A) const sum = (a, b) => a + b;
  • (B) function sum(a, b) => a + b;
  • (C) sum = => (a, b) { a + b; }
  • (D) const sum = (a + b) => {}
  • Correct Answer - Option(A)
  • Views: 8
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin
Arrow functions use the => syntax.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.