Skip to content

Instantly share code, notes, and snippets.

@romyilano
Created December 24, 2014 01:31
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/0da45051a6552e81fcf1 to your computer and use it in GitHub Desktop.
Save romyilano/0da45051a6552e81fcf1 to your computer and use it in GitHub Desktop.
skateboard tricks that made it to snowboarding - javascript "class like" prototype -- 8D
#import "Skateboard.js"
function Snowboard() {}
// this is how it inherits from another instance
Snowboard.prototype = new Skateboard();
Snowboard.constructor = Snowboard
// pushing a dictionary in javascript???
Snowboard.prototype.tricks = function () {
// could this be done without a function???
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment