RsD0p9BK
12/25/2014 - 1:29 PM

prototype.js

// http://stackoverflow.com/questions/4083351/what-does-jquery-fn-mean
// http://habrahabr.ru/post/138913/

Expads.prototype.echo = function(options) {
  return console.log("yes!");
};

Expads.prototype.c1 = {
  echo: function () {
    return console.log("echo!");
  }
};

var expads = new Expads();

expads.echo();
expads.c1.echo();