mirror of
https://github.com/github/codeql.git
synced 2026-03-18 05:26:45 +01:00
13 lines
182 B
JavaScript
13 lines
182 B
JavaScript
function Point(x, y) {
|
|
this.x = x;
|
|
this.y = y;
|
|
}
|
|
|
|
Point.prototype.move = function(dx, dy) {
|
|
this.x += dx;
|
|
this.y += dy;
|
|
};
|
|
|
|
var p = new Point(2, 3),
|
|
q = new Point(3, 4);
|