Skip to content

Commit

Permalink
solution
Browse files Browse the repository at this point in the history
  • Loading branch information
Duster-1 committed Aug 7, 2023
1 parent 90c9339 commit 20b5f37
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/makeRobot.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,13 @@ function makeRobot(name, wheels, version) {
},

get info() {
return `name: ${name}, chip version: ${version}, wheels: ${wheels}`;
return 'name: ' + this.name
+ ', chip version: ' + this.version
+ ', wheels: ' + this.wheels;
},

get location() {
return `${name}: x=${this.coords.x}, y=${this.coords.y}`;
return `${this.name}: x=${this.coords.x}, y=${this.coords.y}`;
},

goForward(steep = 1) {
Expand Down

0 comments on commit 20b5f37

Please sign in to comment.