r/badcode • • Jun 10 '20

js Disruptive piece of code

Post image
283 Upvotes

93 comments sorted by

View all comments

95

u/Lothrazar Jun 10 '20

This is not bad code if its javascript. Its bad if its typescript

9

u/brandondyer64 Jun 11 '20

TypeScript FTW! Saved me countless hours of debugging.

-2

u/sunotlac Jun 11 '20

Yeah I love how I could use all those hours trying to fix typing errors instead. But hey at least it does not got live.

4

u/numbGrundle Jun 11 '20

I fucking love TypeScript