• 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
cire Avatar
Name:Unknown
Clan:Unknown
Member Since:May 2016
Last Seen:May 2023
Profiles:
    Following:0
    Followers:2
    Allies:0
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (15)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • plleras
      • commented on "Compare Versions" javascript solution
      • 2 years ago

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

    • Custom User Avatar
      • cire
      • commented on "Statistics for an Athletic Association" kata
      • 2 years ago

      See: https://docs.codewars.com/training/troubleshooting#print-input

    • Custom User Avatar
      • cire
      • commented on "Sum without highest and lowest number" javascript solution
      • 3 years ago

      array || [] evaluates to array when array is a truthy value and otherwise evaluates to an empty array.

      So, array = array || [] will set array equal to an empty array if it does not already refer to an object.

    • Custom User Avatar
      • cire
      • commented on "You're a square!" kata
      • 3 years ago

      I think you've got things backwards. Your code returns true for 47 but should return false.

    • Custom User Avatar
      • cire
      • commented on "Sort Numbers" kata
      • 3 years ago

      If the goal of the function is to return a sorted array, not returning one in some cases seems counter-productive to me.

    • Custom User Avatar
      • cire
      • commented on "Simple remove duplicates" kata
      • 4 years ago

      https://docs.codewars.com/training/troubleshooting#error-messages-and-printing-your-inputoutput

    • Custom User Avatar
      • FrameMuse
      • commented on "Memoized Log Cutting" javascript solution
      • 4 years ago

      I'm not arguing with your solutions, it tricked me in the first glance, so notice for everyone else:

      Such function only applies caching to a current call.
      It means if the function takes 7 seconds to complete, calling it 3 times, in total, will take 21 seconds.

    • Custom User Avatar
      • Gita-mw
      • commented on "Series of integers from m to n" javascript solution
      • 5 years ago

      I posted an explanation of this solution to evarx78's comment. I hope it will help you too.

    • Custom User Avatar
      • Gita-mw
      • commented on "Series of integers from m to n" javascript solution
      • 5 years ago

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

    • Custom User Avatar
      • cire
      • commented on "Evens and Odds" javascript solution
      • 5 years ago

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

    • Custom User Avatar
      • cire
      • commented on "Sum by Factors" kata
      • 5 years ago

      How many times do each of those numbers that 2 is a factor of occur?

    • Custom User Avatar
      • NunoDEV
      • commented on "Series of integers from m to n" javascript solution
      • 5 years ago

      what

    • Custom User Avatar
      • cire
      • commented on "Training JS #21: Methods of String object--trim() and the string template" javascript solution
      • 5 years ago

      For that to work the value of s has to be saved to s for every loop

      s += tmp is short for s = s + tmp. So, s + tmp is literally saved to s for every iteration of the loop. This expression is not "inside a function call". The result of the evaluated expression (s) is used as an argument to the function.

      Any code of the form:

          someFunc( s += tmp );
      

      can be rewritten as

          s += tmp;
          someFunc(s);
      
    • Custom User Avatar
      • evarx78
      • commented on "Series of integers from m to n" javascript solution
      • 5 years ago

      Can someone explain this code ?

    • Custom User Avatar
      • cire
      • commented on "Highest Scoring Word" kata
      • 6 years ago

      Take a close look at your alphabet.

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

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...