banner

Exercise 1-2

I expect the answers to be:

1. false
2. 5
3. false
4. true
5. 5
6. false
7. false

Let's see if I am correct.

1. $ReturnValue = 2 == 3;
1. false

2. $ReturnValue = "2" + "3";
2. 5

3. $ReturnValue = 2 >= 3;
3. false

4. $ReturnValue = 2 <= 3;
4. true

5. $ReturnValue = 2 + 3;
5. 5

6. $ReturnValue = (2 >= 3) && (2 > 3);
6. false

7. $ReturnValue = (2 >= 3) || (2 > 3);
7. false