Skip to content

Instantly share code, notes, and snippets.

@hanssens
Created June 25, 2014 07:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hanssens/e2aea490637d844c673f to your computer and use it in GitHub Desktop.
Save hanssens/e2aea490637d844c673f to your computer and use it in GitHub Desktop.
Simple Javascript Prototype sample, used for quick copy/paste...
// Simple Javascript Prototype sample, used for bootstrapping classes ;)
var App = function() {
// define a custom function 'Ping()'
App.prototype.Ping = function () {
console.log("Pong!");
};
};
// OnDocumentReady()
$(function() {
console.clear();
var app = new App();
app.Ping();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment