Q. How do you define an arrow function in JavaScript?
β
Correct Answer: (B)
() => {}
Explanation: The correct syntax for an arrow function is: () => {}