Q. How do you write an arrow function that returns 10?
β
Correct Answer: (B)
() => 10
Explanation: Arrow functions return the value of a single expression without braces.