Can anyone tell me why
8>7<6 = true
12>10>2 = false
Please give answer
Please Go through the image also
Thanks in Advance
Data aggregation and human typing errors are some of the sources of duplicate data. Customers may also provide a company with different information at different points in time. Hence, businesses should consider removing duplicate records from their Database.
In addition to the ribbon buttons, you can use keyboard shortcuts for copy and paste. Control-c to copy; control-v to paste. Note that you can select more than one destination cell, and Excel will repeat the copied cells when they are pasted.
Here true = 1
and false =0
and expression evaluate from left to right
1) 8>7<6 = true
8>7 = true
true<6 = 1<6=true
2) 12>10>2 = false
12>10=true
true>2 = 1>2= false
In javascript the comaprison expression is evaluated from leftmost to right so
When you do 8 > 7 < 6
, it undergoes the steps:
8 > 7 //true
true < 6 // true, since boolean value true is 1
Similarly when you do 12 > 10 >2
, it undergoes the steps:
12 > 10 //true
true > 2 //false, since boolean value true is 1
Furthermore, you cannot assume that 12 > 10 > 2
will evaluate as a whole.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With