• 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
Devinath Avatar
Name:Unknown
Clan:Unknown
Member Since:Mar 2018
Last Seen:Jul 2019
Profiles:
    Following:0
    Followers:0
    Allies:0
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (11)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • Devinath
      • commented on "Regex Password Validation" kata
      • 7 years ago

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

    • Custom User Avatar
      • Devinath
      • commented on "Sorted? yes? no? how?" kata
      • 7 years ago

      Thanks a lot Chrono, I didnt think of that.

    • Custom User Avatar
      • Chrono79
      • commented on "Sorted? yes? no? how?" kata
      • 7 years ago

      Is [1, 2, 2, 3] sorted to you or not?

    • Custom User Avatar
      • Devinath
      • commented on "Sorted? yes? no? how?" kata
      • 7 years ago

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

    • Custom User Avatar
      • Devinath
      • commented on "Sorted? yes? no? how?" kata
      • 7 years ago

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

    • Custom User Avatar
      • Chrono79
      • commented on "Sorted? yes? no? how?" kata
      • 7 years ago

      other than that the values should be pushed correctly

      No, because the push is outside the loop.
      array.lenth is undefined and 0 < undefined is false, so your loop never runs and because the push is outside the loop, you're only pushing the first element to the new array.

    • Custom User Avatar
      • CodingWarrior
      • commented on "Sorted? yes? no? how?" kata
      • 7 years ago

      well array.lenth has a typo, it should be array.length, also, i=0; should be var i=0;
      other than that the values should be pushed correctly

    • Custom User Avatar
      • Devinath
      • commented on "Sorted? yes? no? how?" kata
      • 7 years ago

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

    • Custom User Avatar
      • Devinath
      • commented on "Will you make it?" kata
      • 7 years ago

      thanks a lot Chrono79!
      I didnt realize there was a spoiler content flag, ill be sure to use it from now on.

    • Custom User Avatar
      • Chrono79
      • commented on "Will you make it?" kata
      • 7 years ago

      Wrong data type, "true" is a string, not a boolean. And mark your post as having spoiler content when it does.

    • Custom User Avatar
      • Devinath
      • commented on "Will you make it?" kata
      • 7 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...