+ 2
help me with this question please
Fill in the blanks to declare a class Point with a constructor initializing its x and y members. Point { (a, b) { this.x = a; this.y = b; } getX() { return this.x; } getY() { return this.y; }
5 Answers
+ 6
class Point {
constructor(a,b){
this.x = a;
this.y = b;
}
getX() { return this.x; }
getY() { return this.y; }
}
This is the corrected code :))
+ 1
class Point {
constructor(a,b){
this.x = a;
this.y = b;
}
getX() { return this.x; }
getY() { return this.y; }
}
0
Class
Constructor
}
0
deje myMap = nuevo Map ();
myMap.set ('cero',
);
mi mapa.
('uno 1);
(deje [clave, valor] de myMap) {
console.log (`$ {
} = $ {value} `);
}
0
class
Point {
constructor
(a, b) {
this.x = a;
this.y = b;
}
getX() { return this.x; }
getY() { return this.y; }
}



