About 979,000 results
Open links in new tab
  1. javascript : function and object...? - Stack Overflow

    @Adam - your comment "A new object is created when using new and the function is called in the scope of that function" - is very misleading. When called with new, the function's this keyword is set to a …

  2. javascript - Functions inside objects - Stack Overflow

    I know the title is vague but I didn't know what to write. In javascript, I know how to write functions that will be called like this : argument1.function(argument2); Here is the fiddle demonstr...

  3. Is `Object` a function in JavaScript? - Stack Overflow

    Feb 25, 2019 · Object and Function are both examples of constructor functions, which is why their names start with an uppercase letter (a convention in JavaScript). When you create an object with a …

  4. Properties of Javascript function objects - Stack Overflow

    Mar 2, 2013 · I have a JavaScript function object as; var addNum = function(num1, num2) { return num1 + num2; } Now if I try to access addNum.divide() I wanted to understand the prototype chain for the

  5. How to convert an "object" into a function in JavaScript?

    JavaScript allows functions to be treated as objects--if you first define a variable as a function, you can subsequently add properties to that function. How do you do the reverse, and add a function to an …

  6. javascript - Is it possible to get all arguments of a function as ...

    Jan 8, 2011 · The arguments object is where the functions arguments are stored. The arguments object acts and looks like an array, it basically is, it just doesn't have the methods that arrays do, for example:

  7. javascript - What does [object Object] mean? - Stack Overflow

    and Object objects! stringify({}) -> [object Object] That's because the constructor function is called Object (with a capital "O"), and the term "object" (with small "o") refers to the structural nature of the thingy. …

  8. JavaScript: function returning an object - Stack Overflow

    113 I'm taking some JavaScript/jQuery lessons at codecademy.com. Normally the lessons provide answers or hints, but for this one it doesn't give any help and I'm a little confused by the instructions. …

  9. javascript - Object vs Class vs Function - Stack Overflow

    Jul 8, 2013 · Object is the base type in JavaScript i.e. all the user defined data types inherits from Object in one way or another. So if you define a function or a class [note as of now JS doesn't support class …

  10. javascript - this inside function - Stack Overflow

    The this keyword refers to the object the function belongs to, or the window object if the function belongs to no object. It's used in OOP code, to refer to the class/object the function belongs to For example: