• 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
ZBeast21 Avatar
Name:Unknown
Clan:Fullstack Academy
Member Since:Sep 2016
Last Seen:Aug 2021
Profiles:
    Following:426
    Followers:426
    Allies:425
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (17)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • nicmet
      • commented on "Grasshopper - Messi goals function" javascript solution
      • 4 years ago

      The 0 is necessary if no args are passed. This is never the case for this challenge, but if we're going to overengineer it to work with args[n>0] we might as well cover the extra case.

    • Custom User Avatar
      • Cerbrus
      • commented on "Grasshopper - Messi goals function" javascript solution
      • 7 years ago

      The , 0 starting value isn't required in this reduce Starting with the first value in the array is fine, here.

    • Custom User Avatar
      • ZBeast21
      • commented on "Grasshopper - Messi goals function" javascript solution
      • 7 years ago

      Thanks, @colbydauph !

    • Custom User Avatar
      • colbydauph
      • commented on "Grasshopper - Messi goals function" javascript solution
      • 7 years ago

      https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions

      "An arrow function expression has a shorter syntax than a function expression and does not have its own this, arguments, super, or new.target..."

    • Custom User Avatar
      • ZBeast21
      • commented on "Grasshopper - Messi goals function" javascript solution
      • 7 years ago

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

    • Custom User Avatar
      • ZBeast21
      • commented on "Reversed sequence " javascript solution
      • 7 years ago

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

    • Custom User Avatar
      • ZBeast21
      • commented on "Two to One" kata
      • 7 years ago

      Is there a way to do this with regex?

    • Custom User Avatar
      • ZBeast21
      • commented on "Enumerable Magic #2 - True for Any?" javascript solution
      • 7 years ago

      Oh, wow. I didn't even notice that bit. That makes complete sense.

    • Custom User Avatar
      • Unnamed
      • commented on "Enumerable Magic #2 - True for Any?" javascript solution
      • 7 years ago

      Yeah. When this solution was written (2015-04-24T17:59:22.000Z, judging by the MongoDB ID in the link), there was only Node 0.10 or something like that on Codewars.

    • Custom User Avatar
      • ZBeast21
      • commented on "Enumerable Magic #2 - True for Any?" javascript solution
      • 7 years ago

      It's best to use "const" instead of "var" when defining a function.

    • Custom User Avatar
      • ZBeast21
      • commented on "Strip Comments" javascript solution
      • 7 years ago

      Oh wow, this is fantastic!

    • Custom User Avatar
      • ZBeast21
      • commented on "Catalog" javascript solution
      • 7 years ago

      great use of regex!

    • Custom User Avatar
      • ZBeast21
      • commented on "Catalog" javascript solution
      • 7 years ago

      I like your use of ".filter"!

    • Custom User Avatar
      • ZBeast21
      • commented on "Simple Fun #167: Spreadsheet" javascript solution
      • 7 years ago

      Sorry abou tnot cleaning this up before submitting it!

    • Custom User Avatar
      • PetrlaM
      • commented on "Numbers that are a power of their sum of digits" kata
      • 9 years ago

      Every element of the sequence satisfies a condition that certain power (e.i. ANY) of the sum of its digits is equal to the number itself. Your calculations are correct but the test cases are fine as well ;)

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

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...