Created
November 11, 2018 20:31
-
-
Save tondrej/8790bac7e1c5fcd334c9e55df7d1a266 to your computer and use it in GitHub Desktop.
Shape
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 Shape(x, y) { | |
this.x = x; | |
this.y = y; | |
} | |
Shape.prototype.move = function(x, y) { | |
this.x += x; | |
this.y += y; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment