Posts

Showing posts with the label Nested Functions

Javascript Functions

JavaScript Functions -- Inferences Functions are fundamental modular units. Functions are Objects Every object has object.protoype property which is used for inheritance. Functions also have a Prototype property that is internally connected to Object.prototype. Function .prototype is a constructor property whose value is the function itself.  Since they are objects they can be passed as objects. When a function is invoked with .(Dot) or [Subscript] then the function becomes a method.  The Function by default gets "arguments" as default argument even if it is not present in function signature however it is not exactly an array object but has "length" property. This Keyword If a function is defined within an Object and when function is invoked with that object."This" is tied to object.  Any Object is used to invoke function accessing "This" will retrive that objectinside function scope. When we use Nested Functions "This...