The following features are common to all conforming ECMAScript implementations, unless explicitly specified otherwise.
Imperative and structured
Functions are first-class; they are objects themselves. As such, they have properties and can be passed around and interacted with like any other object.
inner functions and closures
functions as object constructors
functions as methods
Unlike many object-oriented languages, there is no distinction between a function definition and a method definition. Rather, the distinction occurs during function calling; a function can be called as a method. When a function is called as a method of an object, the function's local this keyword is bound to that object for that invocation.
Posted by Selvam at 2:19 AM