Skip to content

@Raynos /verbose.js
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
ES5 is verbose
var Animal = {
legs: 4,
walk: function () { ... }
};
var Cat = Object.create(Animal, {
nyan: {
value: function () { ... },
configurable: true
},
constructor: {
value: function () { this.lives = 9; },
configurable: true
}
});
var cat = Object.create(Cat);
cat.constructor();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.