you are viewing a single comment's thread.

view the rest of the comments →

[–]zyxzevn[S] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

On reddit /r/shittyprogramming we had some contests about who could make the most shitty implementation of "IsEven".
There were worse solutions than this one.

In my implementation I used the build-in Eval() function of javascript to recursively.
And it worked in my tests.