+ 3
Function are objects in javascript???
Can anyone explain this statement. Are functions objects in other sense they just behave like objects??
1 Resposta
+ 7
Like the program itself, a function is composed of a sequence of statements called the function body. Values can be passed to a function, and the function will return a value. In JavaScript, functions are first-class objects, because they can have properties and methods just like any other object.