Created
December 21, 2014 07:17
-
-
Save romyilano/aa98d32df1773327c7f7 to your computer and use it in GitHub Desktop.
MC Lyte Ruffneck. plus with all the relationship drama in hip hop, this is a positive but not fluffy song..t https://www.youtube.com/watch?v=ygteZWP_tL0 making learning javascript less scary for an objective-c programmer. just kidding! we love javascript
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
// http://www.phpied.com/3-ways-to-define-a-javascript-class/ | |
// so javascript doesn't really have classes but dictionaries | |
// but you can fake classes? | |
// methods added to the prototype | |
function Ruffneck () { | |
this.gender = "man"; | |
this.shoes = "Timberlands"; | |
this.hair = "shaved"; | |
} | |
Ruffneck.prototype.gottaGet = function() { | |
// tbd | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment