-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Develop #2493
Develop #2493
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good start👍
src/makeRobot.js
Outdated
name: name, | ||
wheels: wheels, | ||
version: version, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1'st point in checklist
src/makeRobot.js
Outdated
coords: { | ||
x: 0, | ||
y: 0, | ||
}, | ||
get info() { | ||
return `name: ${this.name}` | ||
+ `, chip version: ${this.version}, wheels: ${this.wheels}`; | ||
}, | ||
get location() { | ||
return `${this.name}: x=${this.coords.x}, y=${this.coords.y}`; | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
coords: { | |
x: 0, | |
y: 0, | |
}, | |
get info() { | |
return `name: ${this.name}` | |
+ `, chip version: ${this.version}, wheels: ${this.wheels}`; | |
}, | |
get location() { | |
return `${this.name}: x=${this.coords.x}, y=${this.coords.y}`; | |
}, | |
coords: { | |
x: 0, | |
y: 0, | |
}, | |
get info() { | |
return `name: ${this.name}` | |
+ `, chip version: ${this.version}, wheels: ${this.wheels}`; | |
}, | |
get location() { | |
return `${this.name}: x=${this.coords.x}, y=${this.coords.y}`; | |
}, |
add spaces between methods and multiline object key / values
src/makeRobot.js
Outdated
|
||
return this; | ||
}, | ||
evacuate(serviceCenterX = 1400, serviceCenterY = 500) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be great to move evacuation coords to variable also
@@ -38,7 +38,65 @@ | |||
* @return {Robot} | |||
*/ | |||
function makeRobot(name, wheels, version) { | |||
// write code here | |||
const serviceCenter = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const serviceCenter = { | |
const serviceCenterCoords = { |
No description provided.