Update Javascript coding guidelines authored by Moreau Nicolas's avatar Moreau Nicolas
...@@ -429,7 +429,11 @@ function sum(a, b) { ...@@ -429,7 +429,11 @@ function sum(a, b) {
```javascript ```javascript
/** /**
* Class representing a dot. * Class representing a dot.
* @typedef {Object} Dot
* @extends Point * @extends Point
*
* @property {number} x the x value
* @property {number} y the y value
*/ */
class Dot extends Point { class Dot extends Point {
/** /**
...@@ -439,7 +443,9 @@ class Dot extends Point { ...@@ -439,7 +443,9 @@ class Dot extends Point {
* @param {number} width - The width of the dot, in pixels. * @param {number} width - The width of the dot, in pixels.
*/ */
constructor(x, y, width) { constructor(x, y, width) {
// ... this.x = x;
this.y = y;
...
} }
/** /**
... ...
......