Q. How can you write an arrow function?
β
Correct Answer: (A)
const sum = (a, b) => a + b;
Explanation: Arrow functions use the => syntax.