mirror of
https://github.com/github/codeql.git
synced 2026-01-19 17:34:47 +01:00
12 lines
178 B
JavaScript
12 lines
178 B
JavaScript
function Point(x, y) {
|
|
this.x = x;
|
|
this.y = y;
|
|
this.move = function(dx, dy) {
|
|
this.x += dx;
|
|
this.y += dy;
|
|
};
|
|
}
|
|
|
|
var p = new Point(2, 3),
|
|
q = new Point(3, 4);
|