Practice
What would the computer say? Try to do these in your head before going to IRB. Remember, the answers will be a boolean value, either true or false.
-
Is 3 > 5 ?
-
3 < 5
-
5 == 5
-
10 >= 10
-
10 <= 12
-
10 != 10
-
10.object_id == 10.object_id
What about strings?
-
"dog" == "cat"
-
"cat" == "cat"
-
"cat.object_id" == "cat.object_id"