Q. Which of the following is a correct way to define an arrow function?
β
Correct Answer: (A)
const add = (a, b) => a + b;
Explanation: This is the correct syntax for defining arrow functions.