Ruby - Variables and Data Types
What will be the output of this Ruby code?
sym1 = :cat
sym2 = :cat
puts sym1.object_id == sym2.object_idWhat will be the output of this Ruby code?
sym1 = :cat
sym2 = :cat
puts sym1.object_id == sym2.object_id15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions