javascript method

JavaScript
JavaScript methods are actions that can be performed on syntax.
Examples of methods include syntax ending with ();
                                                
Examples:
console.log();                                                
toUpperCase();
Math.floor();

They help change original syntax in various ways.
Source

Also in JavaScript: