Skip to content

Instantly share code, notes, and snippets.

@amadeus
Created May 29, 2013 02:08
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 amadeus/5667508 to your computer and use it in GitHub Desktop.
Save amadeus/5667508 to your computer and use it in GitHub Desktop.
/* exported Example, Example2, Obj, test */
function Example(){
return true;
}
var test = new Class({
// weird
func: function(){}
});
var Obj = {
num: 2,
arr: [0, 'str', true, {
subKey: 'value'
}],
// This is a single line comment
obj: {
fun: 'not'
},
bool1: true,
bool2: false,
nil: null,
str: 'string',
// tubez
func: function(tubez){}
};
var counter = 0;
var Example2 = function(arg1, arg2){
this.one = arg1;
this.two = arg2;
counter++;
};
Example2.prototype = {
getOne: function(){
return this.one;
}
};
new Example2('arg', 'another-arg');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment