Created
June 25, 2014 07:44
-
-
Save hanssens/e2aea490637d844c673f to your computer and use it in GitHub Desktop.
Simple Javascript Prototype sample, used for quick copy/paste...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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