top of page

Upskilling Exams

Public·11 members

In JavaScript, you will often hear the terms function and method, and although they look similar, they are not the same. A function is an independent block of code that performs a specific task. A method is a function that belongs to an object. When a function is defined inside an object and accessed using the dot (.) notation, it becomes a method.

13 Views
bottom of page