Method Chaining:- Method chaining is a process through which we are calling another method in result of another method, it result in clean and concise code, single search over DOM so it gives better performance. This is the main benefits.
For example:- The "jQuery" or "$" returns itself (an object) which allows the chaining. Basically the first function call $('myDiv') returns a jQuery object, then each subsequent call returns the same one