-1

I am confused in trying to understand the function event object.

How does function(event) differ from function = event => in a code like the one below?

functionName(event) {
    // code
}
Brian Tompsett - 汤莱恩
  • 5,438
  • 68
  • 55
  • 126
arunsathiya
  • 156
  • 4
  • 9
  • 1
    https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions Just read the documentation – Taplar Feb 12 '19 at 16:17

1 Answers1

0

Check our this article will cover arrow Functions for Beginners Javascript. Arrow functions are a new ES6 syntax for writing JavaScript functions.

Panayiotis Georgiou
  • 949
  • 3
  • 17
  • 34