Created
December 24, 2014 01:31
-
-
Save romyilano/0da45051a6552e81fcf1 to your computer and use it in GitHub Desktop.
skateboard tricks that made it to snowboarding - javascript "class like" prototype -- 8D
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
#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