Skip to content

Instantly share code, notes, and snippets.

@pbse
Created August 10, 2015 01:58
Show Gist options
  • Select an option

  • Save pbse/139316364241546e5d8e to your computer and use it in GitHub Desktop.

Select an option

Save pbse/139316364241546e5d8e to your computer and use it in GitHub Desktop.
Point Class
function Point(x,y) {
this.x = x;
this.y = y;
}
Point.prototype.getPoints = function() {
Console.log(this.x);
Console.log(this.y);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment