Created
August 10, 2015 01:58
-
-
Save pbse/139316364241546e5d8e to your computer and use it in GitHub Desktop.
Point Class
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 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