About 248,000 results
Open links in new tab
  1. javascript - Functions inside objects - Stack Overflow

    Note: In the first example the functions are named and have their own this-context. In the second example, the this-context from outside of the functions is used. In the third example, the …

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

    Feb 25, 2019 · All native functions inherit from Function.prototype which inherits from Object.prototype, so it means function indirectly inherits from Object.prototype because …

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

    Jul 8, 2013 · This is the reason typeof null returns "object". Functions in JavaScript are similar to functables in Lua (i.e. they are callable objects). Hence a function can be used in place of an …

  4. oop - Javascript object properties and functions - Stack Overflow

    Jul 19, 2012 · Both of the above create an object with a property called propName which has a string value "propValue". Note that this doesn't come into it. Functions. There are a couple of …

  5. JavaScript: function returning an object - Stack Overflow

    In JavaScript, most functions are both callable and instantiable: they have both a and [[Construct]] internal methods. As callable objects, you can use parentheses to call them, optionally passing …

  6. javascript - How to display all methods of an object? - Stack …

    Aug 31, 2017 · Global Object There is a unique global object (15.1), which is created before control enters any execution context. Initially the global object has the following properties: • …

  7. javascript - How to get an object's methods? - Stack Overflow

    Apr 30, 2011 · Is there a method or propertie to get all methods from an object? For example: function foo() {} foo.prototype.a = function() {} foo.prototype.b = function() {} foo ...

  8. How do I correctly clone a JavaScript object? - Stack Overflow

    Apr 8, 2009 · I have an object x. I'd like to copy it as object y, such that changes to y do not modify x. I realized that copying objects derived from built-in JavaScript objects will result in …

  9. Pass object to javascript function - Stack Overflow

    Oct 14, 2011 · I have recently been messing around with jQuery on my website, and I have a fairly limited knowledge of Javascript. I am beginning to like the jQuery ability to pass variables …

  10. Javascript add method to object - Stack Overflow

    Nov 23, 2012 · If, however, you're looking to create 5 scrollbars per page, and you want each one to be able to set its position and keep track of if it's being dragged, without letting every other …

Refresh