• 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
Darnor Avatar
Name:Unknown
Clan:HSR
Member Since:Apr 2015
Last Seen:Sep 2019
Profiles:
Following:79
Followers:77
Allies:65
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (331)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • SummerTheCoder
    • commented on "Transportation on vacation" javascript solution
    • 6 months ago

    If the Kata supplied floats, then this would have been invalid. But it doesn't.

  • Custom User Avatar
    • majortomate
    • commented on "Transportation on vacation " javascript solution
    • 13 months ago

    readibility left the chat.

  • Custom User Avatar
    • opg1
    • commented on "Printer Errors" java solution
    • 2 years ago

    to be fair, you are doing the same by using .toCharArray and .length

  • Custom User Avatar
    • Belchonok
    • commented on "Transportation on vacation " javascript solution
    • 2 years ago

    that is, if 2.5 or 6.5 days, does the discount work?

  • Custom User Avatar
    • Dengv
    • commented on "Printer Errors" java solution
    • 2 years ago

    гениально

  • Custom User Avatar
    • porobertdev
    • commented on "Transportation on vacation " javascript solution
    • 2 years ago

    Same here, I either didn't know or forgot that I can use two ternary operators in one line.

  • Custom User Avatar
    • Viktor.startsWith_Z
    • commented on "L1: Set Alarm" javascript solution
    • 2 years ago

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

  • Custom User Avatar
    • hericlessilva
    • commented on "L1: Set Alarm" javascript solution
    • 2 years ago

    Entendi que neste caso o employed não precisa ser true para a condição do exercicio ser satisfeita, me corrija.

  • Custom User Avatar
    • MaronillaG
    • commented on "L1: Set Alarm" javascript solution
    • 2 years ago

    I like how simple this is.
    As a beginner i'm still writing out the long version and explicitly declaring statements, so this is very useful to see the shorthand versions of the same thing.

    note for my benefit:
    learnings from yours:

    1. brackets not necessary for simple conditional test.
    2. '!' operator understood as 'not true' is the same as '=== false'.
  • Custom User Avatar
    • ChrisKoehl
    • commented on "Printer Errors" java solution
    • 2 years ago

    Nicely done man. I was getting too clever for my own good and this was a good ego check.

  • Custom User Avatar
    • dgjungleP
    • commented on "Printer Errors" java solution
    • 2 years ago

    Nice job with regex

  • Custom User Avatar
    • Nika2004
    • commented on "L1: Set Alarm" javascript solution
    • 2 years ago

    why not? it's easy to read

  • Custom User Avatar
    • Vladimirs77nt
    • commented on "Printer Errors" java solution
    • 2 years ago

    Самое лучшее решение. Коротко и лаконично! Супер

  • Custom User Avatar
    • Kostadin92
    • commented on "Transportation on vacation " javascript solution
    • 3 years ago

    I am super noob, but ternary looks good only with 2 conditions. I would rather have more rows than a line so long

  • Custom User Avatar
    • stoyan.garov
    • commented on "Transportation on vacation " javascript solution
    • 3 years ago

    A very commmon eslint rule is no nested ternary. This would not fly in many teams.

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...