mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
48229e5dbb
PR-URL: https://github.com/nodejs/node/pull/38905 Refs: https://github.com/nodejs/node/issues/35711 Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
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);
|