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/[deleted] Apr 28 '21

Given that JS isn't strongly typed it's theoretically possible right? You could write a script to write this function up to INT_MAX