Skip to content

Instantly share code, notes, and snippets.

@romyilano
Created December 21, 2014 07:17
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 romyilano/aa98d32df1773327c7f7 to your computer and use it in GitHub Desktop.
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
// 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