In Java or other similar languages I can’t do:
a < b > c
where a,b,c are boolean types.
In Javascript I can do that and also with other data types values:
var t = 3;
var z = true;
t > z // will be true
Now why the results is true???
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
True will be converted to 1. And 3 is greater than one…