Created
November 11, 2018 20:36
-
-
Save tondrej/6bd77631bb832d95c8b5086436285aa0 to your computer and use it in GitHub Desktop.
Square
This file contains hidden or 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
function Square(x, y, w) { | |
Rectangle.call(this, x, y, w, w); | |
} | |
Square.prototype = Object.create(Rectangle.prototype); | |
Square.prototype.constructor = Square; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment