Created
May 29, 2013 02:08
-
-
Save amadeus/5667508 to your computer and use it in GitHub Desktop.
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
/* 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