Skip to content

Instantly share code, notes, and snippets.

@tondrej
Created November 11, 2018 20:31
Show Gist options
  • Save tondrej/8790bac7e1c5fcd334c9e55df7d1a266 to your computer and use it in GitHub Desktop.
Save tondrej/8790bac7e1c5fcd334c9e55df7d1a266 to your computer and use it in GitHub Desktop.
Shape
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