• Sign Up
    Time to claim your honor
  • Training
  • Practice
    Complete challenging Kata to earn honor and ranks. Re-train to hone technique
  • Freestyle Sparring
    Take turns remixing and refactoring others code through Kumite
  • Community
  • Leaderboards
    Achieve honor and move up the global leaderboards
  • Chat
    Join our Discord server and chat with your fellow code warriors
  • Discussions
    View our Github Discussions board to discuss general Codewars topics
  • About
  • Docs
    Learn about all of the different aspects of Codewars
  • Blog
    Read the latest news from Codewars and the community
  • Log In
  • Sign Up
mtataroglu Avatar
Name:Mustafa Tataroglu
Clan:Unknown
Member Since:Dec 2022
Last Seen:Mar 2023
Profiles:
Following:0
Followers:0
Allies:0
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (2)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • Chrono79
    • commented on "Friend or Foe?" kata
    • 2 years ago

    Please read this: https://docs.codewars.com/training/troubleshooting#post-discourse

    About the error it shows, read it:

    TypeError: Cannot read property 'length' of undefined

    The function's argument was friends and your wrote friend.length that's why you get that error. There are other problems with that code, but because you already have a working solution, I'm not going to explain them.

  • Custom User Avatar
    • mtataroglu
    • commented on "Friend or Foe?" kata
    • 2 years ago

    This comment is hidden because it contains spoiler information about the solution

  • © 2025 Codewars
  • About
  • API
  • Blog
  • Privacy
  • Terms
  • Code of Conduct
  • Contact

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...