r/programminghorror • • Jun 09 '21

Javascript "Coding is like poetry" The code:

Post image
6.5k Upvotes

146 comments sorted by

View all comments

6

u/Effective_Youth777 Jun 09 '21

theQuestion = toBe ? True : False

6

u/[deleted] Jun 09 '21

theQuestion = toBe || !toBe is more accurate

1

u/Flamecrest Jun 09 '21

OP is JS, so shorter would be theQuestion = !!toBe