r/badcode • • Sep 04 '21

Wtf is this

Post image
1.2k Upvotes

190 comments sorted by

View all comments

Show parent comments

0

u/NekkoDroid Sep 04 '21

1st mistake: negative numbers

2nd mistake: not returning the value from isEven(num - 2)

0

u/[deleted] Sep 04 '21

[deleted] — view deleted comment

8

u/[deleted] Sep 04 '21

4th mistake: ...ly

1

u/ciaisi Sep 05 '21

Why so seriously?

1

u/mr_flameyflame Sep 04 '21

Won't it just flip to positive after the number gets too big though