In JavaScript, all functions are object methods. If a function is not a method of a JavaScript object, it is a function of the global object. We can discuss some methods here and will try to understand them properly with the help of practical examp...