Difference between “anonymous function” and “function literal” in JavaScript?

后端 未结 5 1344
青春惊慌失措
青春惊慌失措 2020-12-09 12:55

The book Learning JavaScript defines anonymous functions as follows...

Functions are objects. As such, you can create them - just like a String

5条回答
  •  忘掉有多难
    2020-12-09 13:15

    I think a broader and more accepted definition of an anonymous function is a function that is created without a name.

提交回复
热议问题