Closed
Description
There's a mistake in JavascriptFundamentals/LogicalOperators/OR/Short-circuitEvaluation.
I added the link and a picture of the section with the mistake.
It says:
"In the example below, the first message is printed, while the second is not"
The opposite is true, it even says so later on:
"In the first line, the OR || operator stops the evaluation immediately upon seeing true, so the alert isn’t run."
Also the messages should be switched, instead of:
true || alert("printed");
false || alert("not printed");
should be:
true || alert("not printed");
false || alert("printed");
Metadata
Metadata
Assignees
Labels
No labels