An anonymous function is a function literal without a name, while a closure is an instance of a function
Concept derived from functional paradigm & common to various languages. As from the name anonymous function we can deduce that function without a name identifier. it is a function literal which can be assigned to any variable identifier.
Understand with a example
vargetName=function(name){returnname;}>getName->ƒ (name) {returnname;}// function literal >getName("John")<-: "John">varname=getName;>varmyname=getName;<-undefined>myname("Jack")<-: "Jack"
You can't do such thing with most of the strongly typed languages, anonymous function are used more as a lambda function in most of strongly type languages.