From 1e7c3b5fbf9c0cb0d6ef707b9361f3e1883d9086 Mon Sep 17 00:00:00 2001 From: didier amyot Date: Fri, 15 Dec 2023 09:20:58 -0500 Subject: [PATCH] added documentation --- modules-examples/tp1.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules-examples/tp1.js b/modules-examples/tp1.js index 02e7c31..6be34e3 100644 --- a/modules-examples/tp1.js +++ b/modules-examples/tp1.js @@ -13,10 +13,19 @@ export class Point{ this.#x = x; this.#y = y; } + + /** + * Retoure la coordonée X du point. + * @returns {number} + */ getX(){ return this.#x; } + /** + * Retoure la coordonée Y du point. + * @returns {number} + */ getY(){ return this.#y; }