-
-
Notifications
You must be signed in to change notification settings - Fork 41
NW6 | Pedram Amani | JS2-Module | Week1 #155
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for cute-gaufre-e4b4e5 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
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.
Nice work mate.
} else { | ||
return sortedList[middleIndex]; | ||
} | ||
// const median = list.splice(middleIndex, 1)[0]; |
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.
Great job, you can remove these lines since it is not useful?
Is not good practice to push commented code.
|
||
console.log(dedupe(["a", "a", "a", "b", "b", "c"])); | ||
|
||
module.exports = dedupe; |
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.
Great work mate!
@@ -0,0 +1,5 @@ | |||
function findMax(numbers) { | |||
return Math.max(...numbers.filter((item) => typeof item === "number")); | |||
} |
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.
Nice work!
0 | ||
); | ||
} | ||
|
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.
Nice work!
// } | ||
// } | ||
// return -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.
Also, can you remove the commented code since you don't need it ?
Cheers mate! Thanks for your time! 👍 |
Learners, PR Template
Self checklist
Changelist
Briefly explain your PR.
JavaScript2 - week1 exercises
Questions
Ask any questions you have for your reviewer.