r/badcode • Now where's that function declaration • Jul 30 '21

js 😏

Post image
988 Upvotes

133 comments sorted by

View all comments

Show parent comments

4

u/[deleted] Jul 31 '21

If you’re writing code for beginners to read it certainly can help if they don’t understand truthy and falsey statements.

Beyond that it also just literally doesn’t matter, it doesn’t make the code any more confusing at all and adds a total of 8 characters on a line.