• 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
labriffa Avatar
Name:Unknown
Clan:FreeCodeCamp, Zuto
Member Since:Dec 2016
Last Seen:Jun 2022
Profiles:
Following:815
Followers:814
Allies:811
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (47)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • ArjunSamuderaAhliFikri
    • commented on "Grasshopper - Grade book" javascript solution
    • 6 months ago

    wow, this is so clean code!
    I'm from Indonesian

  • Custom User Avatar
    • Vincin Christmas
    • commented on "Is this my tail?" javascript solution
    • 7 months ago

    clearly didn't read the description

  • Custom User Avatar
    • proff1991
    • commented on "Reverse List Order" javascript solution
    • 8 months ago

    Mutating an argument is the worst thing you can do.

  • Custom User Avatar
    • nbraisin
    • commented on "Grasshopper - Grade book" javascript solution
    • 9 months ago

    I also thought of using a switch, but as you can see by the comments here, using switch(true) and then doing evaluations in each case is kind of an anti-pattern that can be hard to read and debug.
    I would avoid and look for one of the other conditional options in this board.

  • Custom User Avatar
    • Dakota-Mosier
    • commented on "Reverse List Order" javascript solution
    • 11 months ago

    This is what I did. Awesome job!

  • Custom User Avatar
    • Nodi_r
    • commented on "Sum The Strings" javascript solution
    • 13 months ago

    wow, so good

  • Custom User Avatar
    • nanangandrianto
    • commented on "Is this my tail?" javascript solution
    • 14 months ago

    good blesss.

  • Custom User Avatar
    • MeltingOpera
    • commented on "Reverse List Order" javascript solution
    • 15 months ago

    you can do this if you have exactly one parameter.

  • Custom User Avatar
    • israeldelgado
    • commented on "Reverse List Order" javascript solution
    • 16 months ago

    cool , I did this the same way but put the 'list' parameter into parenthesis,dindn't know I could do it without it.

  • Custom User Avatar
    • JCo822
    • commented on "Sum The Strings" javascript solution
    • 2 years ago

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

  • Custom User Avatar
    • Okyanusaydgn
    • commented on "Name on billboard" javascript solution
    • 2 years ago

    good solving:)

  • Custom User Avatar
    • waheedshams
    • commented on "Is this my tail?" javascript solution
    • 2 years ago

    same sol ^^

  • Custom User Avatar
    • FreddoU8
    • commented on "Is this my tail?" javascript solution
    • 2 years ago

    no substring ? wot´s this dark magic ?

  • Custom User Avatar
    • abhinavkhetarpal
    • commented on "Name on billboard" javascript solution
    • 2 years ago

    So clever.

  • Custom User Avatar
    • greenteaisgreat
    • commented on "Grasshopper - Grade book" javascript solution
    • 2 years ago

    To further clarify for those still confused on why passing in switch(value) doesn't work, it's because it's comparing a Boolean to a numerical one, which will always be false. Say our average is 95 and we're assigning that to a variable avg. If we try to pass in avg as the argument to the switch statement's parameter, this is essentially what is happening:

    switch(avg) {              //avg == 95
       case (avg >= 90):         //comparing 95 to true, which is false
         return 'A';
    

    (avg >= 90) is returning a Boolean. We'll never reach a switch statement that evaluates to true if we're passing in our avg variable as the argument. I hope this helps!

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...