Well the only syntactic difference is that the anonymous function does not have a stated name.
But there is a difference in usage, since an anonymous function has no name, it cannot be called multiple times in a code, it is used more in callbacks
of other functions
Anonymous functions are like ,scripts to be executed that are written WHERE they will be executed,
Functions are isolated code snippets that are called as often as needed
examples of usability:
ANONYMOUS FUNCTION:
setTimeout(function() {
console.log('código executado na função anônima')
},300);
in this case the anonymous function is not a statement of a function that will be used later, but a code to be executed !
https://answall.com/questions/165984/difference%C3%A7a-between-a-syntax-to-declare-a-fun%C3%A7%C3%A3o
– mercador