About 228,000 results
Open links in new tab
  1. Method definitions - JavaScript | MDN - MDN Web Docs

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

  2. JavaScript Object Methods - W3Schools

    A method is a function definition stored as a property value. In the example above, this refers to the person object: this.firstName means the firstName property of person. this.lastName …

  3. How can I add a description to a function in javascript?

    Aug 3, 2022 · I would like to add a description to a js function like I do it in C, C++, Python ... I do this by adding a comment at the top of the definition of the function, in the mentioned …

  4. 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 …

  5. JavaScript | Methods - Codecademy

    Jul 29, 2021 · 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 …

  6. What is a Method in JavaScript? An In-Depth Guide for JS …

    Nov 13, 2023 · To start, a method in JavaScript is essentially a function that is associated with an object. Methods allow you to add reusable functionality to objects without having to rewrite the …

  7. Top 40 JavaScript Methods You Must Know!! - DEV Community

    Oct 15, 2021 · If you have been studying Javascript for so long and still it looks scary to you, probably you haven't learnt these methods yet. This article is for all javascript developers at …

  8. What are Methods in JavaScript? - Altcademy Blog

    Apr 27, 2023 · In JavaScript, a "method" is a function that is associated with an object. Think of an object as a bundle of related properties and actions (methods) that you can perform on those …

  9. How to Master JavaScript Methods: A Guide - Blogs

    Mar 29, 2024 · JavaScript methods are functions tied to objects; correct syntax invoking (i.e., method ()) is key to their execution. Built-in and custom methods enhance object functionality, …

  10. What is Method in JavaScript? - Scaler Topics

    What is a Method in JavaScript? A method in JavaScript is defined as a function that belongs to some class. In other words, a method is a function that is a property of an object. In …

  11. Some results have been removed
Refresh