Do I need to use `needsCoffee === true` or is `needsCoffee` fine?


#1

Question

Do I need to use needsCoffee === true or is needsCoffee fine?

Answer

needsCoffee is fine on its own. The reason is the if only checks to see if your statements inside its () is true/false. needsCoffee already evaluates to true, so you’re good to go!