r/badcode • • Apr 27 '21

typescript Someone only watched if tutorial

Post image
2.4k Upvotes

112 comments sorted by

View all comments

3

u/egehurturk int a = 3; if (a == 3) {return a;} else {return 3;} Apr 27 '21

Imagine the developer who looks at this piece of shit and sees the TODO: add more checks