14 lines
98 B
TypeScript
14 lines
98 B
TypeScript
|
function Point(x, y) {
|
||
|
|
||
|
this.x = x;
|
||
|
|
||
|
this.y = y;
|
||
|
|
||
|
}
|
||
|
|
||
|
var o = new Point(3, 4);
|
||
|
|
||
|
var xx = o.x;
|
||
|
|
||
|
|