DEV Community

Discussion on: Boolean Algebra for Dummies

Collapse
 
kallmanation profile image
Nathan Kallman

Well done!

In "Level 3", where you have A && B == B && A (and same for ||) that's true in Boolean Logic; but in languages like Javascript because the "boolean" operator can be applied to more than just boolean values, switching the inputs might not have the same results for those uses.

And yes; DeMorgan's Law is super cool!

Collapse
 
stefandrl profile image
Stefan Drl

Thank you, Nathan! Very good point 👍