What are arrow functions?

  • Shorter way to write functions.
  • Do not have their own this.
let add = (a, b) => a + b;
console.log(add(5, 3)); // 8

Comments

Leave a Reply

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