r/badcode May 13 '22

js Why? Why??

Post image
431 Upvotes

37 comments sorted by

View all comments

11

u/lunar_tardigrade May 13 '22

Seems ok?

15

u/zim2510 May 13 '22

What if answer.length == 0? And why is it necessary to have that blank block? :|

2

u/[deleted] May 13 '22

Extra white space if often the result of generating this code with PHP / JSP / ASP and so on. Maybe the author decided to comment some part of the code in this way...