Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upYou Don't Know JS: Types & Grammar - "What about &&" Code example not clear enough #948
Labels
Comments
|
We're checking to see if It might be clearer if we were doing something with
|
|
yes, anything different than the value of a (42) is better. |
|
OK, fair point. We can tweak in second edition. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


In What about &&? section we have the following code.
result in comment should indicate that foo was called. but in fact we would get same result of "42" if first operand had been called (like in
||operator). i think results ofaandfoo()should be different to make the example be clearer.for example: