Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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