An arrow function is defined using the _________ symbol.

  • =>
  • ->
  • function
  • =
An arrow function is defined using the => (fat arrow) symbol. This concise syntax is a shorthand for writing simple, one-liner functions in JavaScript. It's especially useful for functions that have no side effects and return a single expression. The => symbol distinguishes arrow functions from traditional function declarations.
Add your answer
Loading...

Leave a comment

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