Let us first consider a real life example. If we consider a mobile phone as an object, then it would have properties like weight, color, size, etc. Methods are those things which object does. Methods for a mobile phone would be making a phone call, play game, listen to music, etc.
For example, We have used document.write(“Some text goes here”); many times. So in this statement, the document is an object and write() is its method.