Question for final...

I have a question before my final and I'm super confused because the correct answer is +1 can y'all explain why?!

What is the value of the following expression? true || true
Answers:
+1
false
-1
true

true || true == true
true || false == true
false || false == false
false || true == true
true and 1 are same, so the answer is true or 1
Topic archived. No new replies allowed.