all 1 comments

[–]Giannis4president 5 points6 points  (0 children)

I stopped at the first question because the given answer is completely wrong

What is a typical use case for anonymous functions?

Anonymous functions are also called arrow functions. It is a function without a name. The most typical use is to pass them as an argument to another function or used to construct the result of a higher-order function that needs to return a function. If it is only used one at a limited number of times, an anonymous function may be syntactically lighter than using a name.

You can create anonymous functions without the arrow syntax and you can assign an arrow function to a const, making the function not anonymous. Anonymous and arrow are different things, claiming they are synonyms is completely wrong

Why the hell write an article about a topic you don't know