-
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
solution #2440
base: master
Are you sure you want to change the base?
solution #2440
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.
add gaps between functions
src/makeRobot.js
Outdated
@@ -38,7 +38,61 @@ | |||
* @return {Robot} | |||
*/ | |||
function makeRobot(name, wheels, version) { | |||
// write code here | |||
const ROBOT_STEP = 1; |
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.
let's add 'default' here
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 job bro
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.
Well done, but don`t forget about good code formating.
x: 0, | ||
y: 0, | ||
}, | ||
get info() { |
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.
get info() { | |
get info() { |
get location() { | ||
return `${this.name}: x=${this.coords.x}, y=${this.coords.y}`; | ||
}, | ||
goForward(step = DEFAULT_ROBOT_STEP) { |
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.
goForward(step = DEFAULT_ROBOT_STEP) { | |
goForward(step = DEFAULT_ROBOT_STEP) { |
|
||
return this; | ||
}, | ||
goBack(step = DEFAULT_ROBOT_STEP) { |
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.
goBack(step = DEFAULT_ROBOT_STEP) { | |
goBack(step = DEFAULT_ROBOT_STEP) { |
|
||
return this; | ||
}, | ||
goRight(step = DEFAULT_ROBOT_STEP) { |
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.
goRight(step = DEFAULT_ROBOT_STEP) { | |
goRight(step = DEFAULT_ROBOT_STEP) { |
|
||
return this; | ||
}, | ||
goLeft(step = DEFAULT_ROBOT_STEP) { |
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.
goLeft(step = DEFAULT_ROBOT_STEP) { | |
goLeft(step = DEFAULT_ROBOT_STEP) { |
|
||
return this; | ||
}, | ||
evacuate() { |
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.
evacuate() { | |
evacuate() { |
No description provided.