If an arrow function is written with a single expression, the return value is the result of the expression without using the ________ keyword.

  • Break
  • Return
  • Yield
  • Exit
In arrow functions, if the function body consists of a single expression, you can omit the curly braces {} and the return keyword. The return value will be the result of the expression automatically.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *