Help me to understand this................:


#1

(((3 * 90) === 270) || !(false && (!false)) || "bex".toUpperCase() === "BEX");

little bit confusing me


#2

@tatheerhussain,

(((3 * 90) === 270) || !(false && (!false)) || "bex".toUpperCase() === "BEX");

( ) grouping (19)
=== is a comparison operator (10)
&& logical AND operator (6)
|| is the logical OR operator (5) left-to-rigth
false is a Boolean Value
! is the NOT operator (15)
* multiplication (14)
You will have to look in the precedence Table
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Operator_Precedence

Everything in a pair of parantheses-( )
will be evaluated as first...

(((3 * 90) === 270) || !(false && (!false)) || "bex".toUpperCase() === "BEX");
((   270   === 270) || !(false &&   true  ) ||        "BEX"        === "BEX");
((         true   ) || !(     false       ) ||                     true     );
((         true   ) ||        true          ||                     true     );
(                  true                     ||                     true     );
(                                           true                            );

#3

thank you so much sir..!!!!
I love the way you explained it to me...!!!