-
Notifications
You must be signed in to change notification settings - Fork 26
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
amine hamdi #27
base: amine-hamdi
Are you sure you want to change the base?
amine hamdi #27
Conversation
@@ -4,3 +4,9 @@ | |||
|
|||
// 2-write a function that takes array of strings and returns an array of the strings that have the same length | |||
// example : ['hi','hello','welcome','hy'] == > ["hi","hy"] | |||
function sameLength(arr){ | |||
return filter (arr, function(elm, i){ |
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.
it gives me an error saying "Uncaught ReferenceError: filter is not defined", do you know why ?
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.
we didn't reach filter yet, can you tell where did you learn about it?
No description provided.