Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vladyslav-svorin committed Aug 6, 2023
1 parent 55f6c6d commit c66f8a6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/makeRobot.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@
* @return {Robot}
*/
function makeRobot(name, wheels, version) {
const serviceCoords = {
x: 1400,
y: 500,
};

const robot = {
coords: {
x: 0,
Expand Down Expand Up @@ -85,8 +90,8 @@ function makeRobot(name, wheels, version) {
},

evacuate() {
this.coords.x = 1400;
this.coords.y = 500;
this.coords.x = serviceCoords.x;
this.coords.y = serviceCoords.y;
},
};

Expand Down

0 comments on commit c66f8a6

Please sign in to comment.