Difference from functions and arrow functions?
Been watching a few tutorials lately for normal JS and React and see people use functions and arrow functions, is there any real difference between the two? Should i be using one over the other?
3 Replies
Arrow function expressions - JavaScript | MDN
An arrow function expression is a compact alternative to a traditional
function expression,
but is limited and can't be used in all situations.
They're mostly the same but have a few differences. Mainly with scope and the
this
keywordahh i see thank you!