Web design software - JavaScript Programmer’s Reference Warnings: . The Global object

JavaScript Programmer’s Reference Warnings: . The Global object does not have a Call property and therefore you cannot use it as a function. See also: Function property, Internal Method, JSObject.call() Property attributes: DontEnum, Internal. Cross-references: ECMA 262 edition 2 section 8.6.2 ECMA 262 edition 3 section 8.6.2 Call a function (Definition) To invoke a function during script execution. Call by reference, Call by value, JSObject.call(), Function call See also: Call by reference (Definition) Calling functions and passing references to receiving LValues in the arguments. If you want to modify a value that is passed to a function, you need to pass a reference to it. Normally you would depend on a function returning a single value. You can do this by creating an object, passing the object but mutating the values of the object’s properties. This bridges the scope chain because the locally scoped copy refers to the outer scoped LValue. This is demonstrated in the example. Example code: