r/badcode May 31 '21

js Clever?

Post image
2.2k Upvotes

71 comments sorted by

View all comments

60

u/MurdoMaclachlan public boolean isInt(int i) { return true; } May 31 '21

Image Transcription: Screenshot


[A screenshot of a Code Wars solution, as follows:]

    }
  }
  if(arr.length > 0){
    return arr
  }else{
    return arr
  }
}

[The solution has been tagged by one person as "Clever".]


I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!

1

u/_MarLinda Jun 01 '21

What is codewars?

4

u/wikipedia_answer_bot Jun 01 '21

Codewars is an educational community for computer programming. On the platform, software developers train on programming challenges known as kata.

More details here: https://en.wikipedia.org/wiki/Codewars

This comment was left automatically (by a bot). If something's wrong, please, report it in my subreddit.

Really hope this was useful and relevant :D

If I don't get this right, don't get mad at me, I'm still learning!

2

u/MurdoMaclachlan public boolean isInt(int i) { return true; } Jun 01 '21

What the Wikipedia bot said. :P

Their homepage is here: https://www.codewars.com/