Skip to content

Commit d183277

Browse files
committed
updated
1 parent dc568b5 commit d183277

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Basic Problems/4-odd-length-friend.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ function oddFriend(friends) {
33
if (Array.isArray(friends) != true) {
44
return "Your input must be an array.";
55
}
6+
67
for (const friend of friends) {
78
length = friend.length;
89
if (length % 2 != 0) {
910
return friend;
1011
}
1112
}
12-
return "There is no odd length of your friends name";
13+
return "There is no odd length of your friends name..";
1314
}
1415
var myFriends = ["Luna", "Sahkib", "Akib", "Jolil", "Komol", "Oggy"];
1516
var friend = oddFriend(myFriends);

0 commit comments

Comments
 (0)