Why does alert (1 # 2) pop up 2?

Why does alert (1 pop up 2) pop up 2? What is the reason

Mar.16,2021

1. As long as "| |" is preceded by false, no matter "| |" is followed by true or false, the result returns the value after "| |".

2. As long as "| |" is preceded by true, no matter "| |" is followed by true or false, the result returns the value before "| |".

3. As long as "& &" is preceded by false, no matter whether it is followed by true or false, the result will return the value before "& &";

4. As long as "& &" is preceded by true, whether it is followed by true or false, the result will return the value after "& &";


because 1 = = true, the value after & & is returned

Menu