Skip to content
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

Closed
wants to merge 4 commits into from
Closed

Develop #2493

wants to merge 4 commits into from

Conversation

no4kar
Copy link

@no4kar no4kar commented Aug 9, 2023

No description provided.

Copy link

@denys-danyliuk denys-danyliuk left a 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
Comment on lines 42 to 44
name: name,
wheels: wheels,
version: version,

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
Comment on lines 45 to 55
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}`;
},

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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) {

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 = {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const serviceCenter = {
const serviceCenterCoords = {

@no4kar no4kar closed this by deleting the head repository Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants