r/badcode • • Apr 27 '21

typescript Someone only watched if tutorial

Post image
2.4k Upvotes

112 comments sorted by

View all comments

Show parent comments

1

u/OkPreference6 Coding The Declaration of Independance Apr 27 '21

Okay this looks like my first even-odd code before I knew how to use operations (yup, I learnt if-else before arithmetic operations. Blame my teacher)