Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyRubysymbols vs stringsSingle-choice MCQ

Why are these two symbols considered the same object while the two strings are not?

:foo.object_id == :foo.object_id # => true "foo".object_id == "foo".object_id # => false