About 409,000 results
Open links in new tab
  1. Functions - JavaScript | MDN - MDN Web Docs

    Mar 7, 2025 · In JavaScript, functions are first-class objects, because they can be passed to other functions, returned from functions, and assigned to variables and properties. They can also …

  2. javascript - Adding custom properties to a function - Stack Overflow

    Dec 21, 2011 · Adding your own custom properties to a function can be done in different ways that should work in every browser. Way 1 : adding properties while running the function : …

  3. Function - JavaScript | MDN - MDN Web Docs

    Jul 15, 2024 · The Function object provides methods for functions. In JavaScript, every function is actually a Function object.

  4. How do I assign a function to the property of a Javascript object?

    In Javascript, you can pass the functions as a parameter to another function or any variable. And then call that function as you have seen in your code. – Khurram Hassan

  5. Properties of Javascript function objects - Stack Overflow

    Mar 2, 2013 · Functions are objects in JS, just like Object literals, arrays, or anything else: a function can be assigned properties and methods at will: console.log(this); console.log(this …

  6. JavaScript Functions - W3Schools

    JavaScript Function Syntax. A JavaScript function is defined with the function keyword, followed by a name, followed by parentheses (). Function names can contain letters, digits, …

  7. Function object, NFE - The Modern JavaScript Tutorial

    Apr 6, 2025 · Function objects contain some useable properties. For instance, a function’s name is accessible as the “name” property: What’s kind of funny, the name-assigning logic is smart. …

  8. Javascript Function Objects - Properties and Methods

    Aug 19, 2022 · JavaScript function objects are used to define a piece of JavaScript code. This code can be called within a JavaScript code as and when required. Can be created by function …

  9. JavaScript - function as an object property - Stack Overflow

    Aug 23, 2012 · What happens if a function is an object property. 1) regarding vocabulary, the variable katana is the object, right? If the anonymous function is its property, then what is …

  10. JavaScript Function Complete Reference - GeeksforGeeks

    Apr 18, 2025 · JavaScript Functions Properties: Return the number of parameters required by a function. Set the display name of the function. Returns the function that invoked the specified …

  11. Some results have been removed
Refresh