-
Notifications
You must be signed in to change notification settings - Fork 6.7k
PAR-Frederic Jacquette & Frederic magnin - Iteration 1 #119
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
Conversation
@@ -20,67 +20,117 @@ var words = [ | ||
"orchard", | ||
"crackpot" | ||
]; | ||
|
||
function findLongestWord(words) { |
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.
This works fine. However you don't need num
because you can simply do long.length
.
} | ||
|
||
var numbers = [2, 6, 9, 10, 7, 4, 1, 9]; | ||
function sumArray(array){ |
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.
You just copy-pasted the same function as above. You don't need to; you can simply reuse it.
"bring" | ||
]; | ||
|
||
var words2 = []; |
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.
This is the solution. However you should but it in the body of the uniquifyArray
function.
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.
You managed to do almost everything; overall this is good work. However you really need to be careful about the code style. Indentation and variable names matter a lot.
Please do fix those little issues so that I can approve your work.
No description provided.