Changes
Page history
Update Javascript coding guidelines
authored
Nov 18, 2021
by
Moreau Nicolas
Hide whitespace changes
Inline
Side-by-side
Javascript-coding-guidelines.md
View page @
cb9241e3
...
...
@@ -429,7 +429,11 @@ function sum(a, b) {
```javascript
/**
* Class representing a dot.
* @typedef {Object} Dot
* @extends Point
*
* @property {number} x the x value
* @property {number} y the y value
*/
class Dot extends Point {
/**
...
...
@@ -439,7 +443,9 @@ class Dot extends Point {
* @param {number} width - The width of the dot, in pixels.
*/
constructor(x, y, width) {
// ...
this.x = x;
this.y = y;
...
}
/**
...
...
...
...