A method is a block of code that can be called from another location in the program or class . It is used to reduce the repetition of multiple lines of code.
Read moreWhich are the common object methods?
Javascript Object methods every developer should know
Read more