Conversation
Thank you for the submission, @Ongkiboy! I'll review your code shortly, hang tight. |
dantharejabot
left a comment
There was a problem hiding this comment.
This is a great attempt, @Ongkiboy!
I would like to request a few changes before merging your work. Please review my comments below and make the appropriate changes to your code.
After you update your code locally, follow the instructions to save your changes locally and push your changes to your fork.
When you push your changes to your fork, I'll come back for another review.
There are 189 style guide violations in your contribution. I've marked them with inline comments for your convenience.
Please revisit your code and follow the style guide best practices.
Hint: You might be able to fix some issues automatically by running npm run lint -- --fix
All the tests are passing. Nice job!
| }; | ||
|
|
||
| module.exports = exports; | ||
| exports._check = (x, y) => { |
There was a problem hiding this comment.
Expected linebreaks to be 'LF' but found 'CRLF'.
(learn more)
|
|
||
| module.exports = exports; | ||
| exports._check = (x, y) => { | ||
| // DRY up the codebase with this function |
There was a problem hiding this comment.
Expected linebreaks to be 'LF' but found 'CRLF'.
(learn more)
| module.exports = exports; | ||
| exports._check = (x, y) => { | ||
| // DRY up the codebase with this function | ||
| // First, move the duplicate error checking code here |
There was a problem hiding this comment.
Expected linebreaks to be 'LF' but found 'CRLF'.
(learn more)
| exports._check = (x, y) => { | ||
| // DRY up the codebase with this function | ||
| // First, move the duplicate error checking code here | ||
| // Then, invoke this function inside each of the others |
There was a problem hiding this comment.
Expected linebreaks to be 'LF' but found 'CRLF'.
(learn more)
| // DRY up the codebase with this function | ||
| // First, move the duplicate error checking code here | ||
| // Then, invoke this function inside each of the others | ||
| // HINT: you can invoke this function with exports._check() |
There was a problem hiding this comment.
Expected linebreaks to be 'LF' but found 'CRLF'.
(learn more)
|
|
||
| exports.add = (x, y) => { | ||
| exports._check(x, y); | ||
| return x + y; |
There was a problem hiding this comment.
Expected linebreaks to be 'LF' but found 'CRLF'.
(learn more)
| exports.add = (x, y) => { | ||
| exports._check(x, y); | ||
| return x + y; | ||
| }; |
There was a problem hiding this comment.
Expected linebreaks to be 'LF' but found 'CRLF'.
(learn more)
| exports._check(x, y); | ||
| return x + y; | ||
| }; | ||
|
|
There was a problem hiding this comment.
Expected linebreaks to be 'LF' but found 'CRLF'.
(learn more)
| return x + y; | ||
| }; | ||
|
|
||
| exports.subtract = (x, y) => { |
There was a problem hiding this comment.
Expected linebreaks to be 'LF' but found 'CRLF'.
(learn more)
| }; | ||
|
|
||
| exports.subtract = (x, y) => { | ||
| exports._check(x, y); |
There was a problem hiding this comment.
Expected linebreaks to be 'LF' but found 'CRLF'.
(learn more)
Implement _check