London | 26-ITP-May | Russom Gebremeskel | Sprint 1 | Coursework - #1339
London | 26-ITP-May | Russom Gebremeskel | Sprint 1 | Coursework#1339russom-g wants to merge 39 commits into
Conversation
…the last set of test.
…ested and passed.
This comment has been minimized.
This comment has been minimized.
1 similar comment
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
LonMcGregor
left a comment
There was a problem hiding this comment.
Good work on these. Functionally they are correct, but they could be improved further
| } | ||
| } | ||
| if (elements.length === arr.length) { | ||
| return arr.slice(); |
There was a problem hiding this comment.
Why do you need this if branch? What does it do?
There was a problem hiding this comment.
Hi @LonMcGregor Thanks for the review and feedback first of all.
I must have forgot to delete it when I finished working on this specific program. It is deleted now.
| return sum; | ||
| } | ||
|
|
||
| let numbers = ["c", "b", "hi", 1]; |
There was a problem hiding this comment.
Is there a better place to put this test case?
There was a problem hiding this comment.
Yes. I forgot the remove this after I finished testing with it. I was rushing with my work and i forget to tidy up a few things. I know this isn't a good excuse. It is deleted now.
| test.todo("given an empty array, it returns an empty array"); | ||
| //test.todo("given an empty array, it returns an empty array"); | ||
| test("given an empty array, it returns an empty array", function() { | ||
| console.log(dedupe) |
There was a problem hiding this comment.
Why are you logging something here?
There was a problem hiding this comment.
Again I must have left it there by mistake. I deleted it now.
Learners, PR Template
Self checklist
Changelist
In this sprint fix, implement, refactor codes worked on.