Can someone explain what exactly the LeftFirst
Boolean Flag is in Abstract Relational Comparison Algorithm
in ECMAScript
? I know that there is only one operator <
handling all other relational operators like >
, >=
, <=
as mentioned in the ECMAScript specification in Abstract Relational Comparison
using the LeftFirst
Boolean Flag for, and example: when we write and run an operation like 10 > 5
the LeftFirst Boolean Flag
becomes false
, and the left operand 10
is moved to the right side where the operand 5
is, and the right operand 5
is moved to the left side where the operand 10
earlier was, and the >
operator becomes <
operator and at last something like this is executed 5 < 10
, but now my question is: when executing 5 < 10
I must know whether what operand gets evaluated first, is it the operand 5
or is it the operand 10
? I'm asking this because they have not mentioned about this in the ECMAScript
specification in the Abstract Relational Comparison Algorithm.
and I must know why the >=
is executed with LeftFirst
true and why the <=
is executed with LeftFirst
false. Pls help me