From 20b5f37fb257e0f87b49a214aa4924fa7d582f28 Mon Sep 17 00:00:00 2001 From: Volodymyr Date: Mon, 7 Aug 2023 19:40:02 +0300 Subject: [PATCH] solution --- src/makeRobot.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/makeRobot.js b/src/makeRobot.js index 11b780c3..5124b69e 100644 --- a/src/makeRobot.js +++ b/src/makeRobot.js @@ -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) {