Object JavaScript - Object Create
// Create the shape object. | |
var Shape = { twoDimensional: true, color: undefined, hasLineSegments: undefined }; | |
var Square = Object.create(Object.getPrototypeOf(Shape)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment