mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
12 lines
171 B
TypeScript
12 lines
171 B
TypeScript
|
class VirtualPoint {
|
||
|
x: number;
|
||
|
y: number;
|
||
|
|
||
|
constructor(x: number, y: number) {
|
||
|
this.x = x;
|
||
|
this.y = y;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
const newVPoint = new VirtualPoint(13, 56);
|