title: How do object or method chaining work in jQuery?
body: <p>I am not asking what is the appropriate syntax for chaining, I know it could be something like:</p>
  <pre><code>$('myDiv').removeClass('off').addClass('on');
  </code></pre>
  <p>As far as I know chaining is one of the advantages against other famous frameworks. Can someone explain to me how chaining works here?</p>