I am new to javascript and jQuery and am trying to understand events better.
Is there an ideal time to use function(event) {} vs. (event => {}? Can you do the same things with either and it's a tomayto tomahto type thing or are there certain instances you need to use one or the other? Is one a declaration and one and expression? It seems like one isn't a function but you can run functions in the curly brackets?
for example:
.mousedown(function(event) { });
VS.
.mousedown(event => [code]);
Can a normal function() ever accomplish things in this realm?
Thank you very much!