About 47,100 results
Open links in new tab
  1. JavaScript Methods - W3Schools

    What are Object Methods? Methods are actions that can be performed on objects. Methods are functions stored as property values.

  2. JavaScript Methods and this Keyword (with Examples) - Programiz

    A JavaScript method is a function defined within an object. We use this keyword in a method to access a property of the same object. In this tutorial, you will learn about JavaScript methods and this keyword …

  3. Method definitions - JavaScript - MDN

    Jul 8, 2025 · Method definition is a shorter syntax for defining a function property in an object initializer. It can also be used in classes.

  4. Difference between Methods and Functions in JavaScript

    Jul 23, 2025 · Actions that can be performed on objects are what we term JavaScript methods. Some methods can be accessed without parentheses if they return a property value instead of executing a …

  5. Method vs Functions, and other questions - Stack Overflow

    Mar 8, 2013 · Definition of a method: A method is a property of an object that is a function. Methods are defined the way normal functions are defined, except that they have to be assigned as the property …

  6. Method in JavaScript – What Is a JavaScript Method? - CodeSweetly

    A JavaScript method is a function used as the value of an object’s property. In other words, a regular function becomes a method once you assign it to an object ’s property.

  7. JavaScript Methods - Codecademy

    Aug 20, 2024 · In JavaScript, methods are object properties containing a function definition. Within the function definition, this can be used to refer to the containing object as long as the function is defined …

  8. JavaScript Properties vs Methods Explained Clearly for Beginners

    Apr 29, 2025 · What Is a Method? A method is a function defined as a property within an object. Example: const fruit = { type: 'banana', eat: function() { console.log('Yum! That was tasty.'); } };

  9. Understanding JavaScript Methods as an Absolute Beginner

    Jan 16, 2022 · Methods are the block of codes or statements in a program that gives the user the ability to reuse the same code which ultimately saves the excessive use of memory, acts as a time saver …

  10. What is Method in JavaScript? - Scaler Topics

    Jan 2, 2024 · The primary difference is that a "function" is a standalone block of code that can be invoked independently or as part of an object, while a "method" is a function that is associated with …