• 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
stackcats Avatar
Name:Unknown
Clan:stackcats
Skills:c, node, python, golang, haskell, common lisp
Member Since:Feb 2016
Last Seen:Jan 2025
Profiles:
Following:25
Followers:47
Allies:25
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (202)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • Revivanco
    • commented on "How good are you really?" javascript solution
    • 2 months ago

    :o

  • Custom User Avatar
    • kelwilson
    • commented on "How good are you really?" javascript solution
    • 2 months ago

    Somewhat true, but to add to that... the 0 acts as a starting number, ensuring reduce behaves consistently. It prevents unintended type coercion and avoids errors when used on an empty array. So, while the 0 is optional if you are 100% sure the array is non-empty and contains only numbers, in all other cases, it's a good practice to include it.

  • Custom User Avatar
    • zali30
    • commented on "How good are you really?" javascript solution
    • 2 months ago

    Mad late, but hopefully helpful to future users: 0 is the initial value in the .reduce() method. As imaNami above said - it's totally optional and the code will still work without it.

  • Custom User Avatar
    • o2001
    • resolved an issue on "Functional SQL" kata
    • 5 months ago

    Not the case anymore.

  • Custom User Avatar
    • debjotyms
    • commented on "How good are you really?" javascript solution
    • 6 months ago

    Thanks for the solution. I get to know about the reduce() function for the first time from your code.

  • Custom User Avatar
    • WezDev
    • commented on "Convert a string to an array" python solution
    • 8 months ago

    it doesn't work for None

  • Custom User Avatar
    • idontnknoebee
    • commented on "Convert a string to an array" javascript solution
    • 8 months ago

    O enunciado pede que a palavra seja dividida individualmente em cada caractere e o espaço dentro do split garante que isso aconteça.

  • Custom User Avatar
    • ThiagoxD301
    • commented on "Convert a string to an array" javascript solution
    • 8 months ago

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

  • Custom User Avatar
    • stevelw
    • commented on "How good are you really?" javascript solution
    • 9 months ago

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

  • Custom User Avatar
    • stevelw
    • commented on "How good are you really?" javascript solution
    • 9 months ago

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

  • Custom User Avatar
    • yevmot
    • commented on "How good are you really?" javascript solution
    • 11 months ago

    Your points are not included in the array of your class's points. Do not forget them when calculating the average score!

    You didn't take into account the length of your points

  • Custom User Avatar
    • Zaharela
    • commented on "How good are you really?" javascript solution
    • 11 months ago

    why?

  • Custom User Avatar
    • Zaharela
    • commented on "How good are you really?" javascript solution
    • 11 months ago

    lol, wont to start braind xD

  • Custom User Avatar
    • Dogiboi
    • commented on "Convert a string to an array" python solution
    • 11 months ago

    Damn I feel dumb. Thank you for showing me how to do it better

  • Custom User Avatar
    • adrianmacz
    • commented on "How good are you really?" javascript solution
    • 11 months ago

    My brain exploded when I saw how easy your solution looked lol

  • Loading more items...
  • © 2025 Codewars
  • About
  • API
  • Blog
  • Privacy
  • Terms
  • Code of Conduct
  • Contact

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...