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.
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!
Thank you, Nathan! Very good point 👍