[SOLVED] How do I instantiate the Mars object within the Rover class? Well, I'm returning the following error: "Mars is not defined"
class Rover{
constructor(orderedX,orderedY,orientation,toMove){
this.orderedX = orderedX;
this.orderedY = orderedY;
this.orientation = orientation;
this.toMove = toMove;
this.marsZise = new Mars(5,5);
this.running();
}
class Mars{
constructor(sizeX,sizeY){
this._orderedlengthX = sizeX;
this._orderedlengthY = sizeY;
}