Ruby offers a number of comparison operators for comparing items. If both objects may be deemed the same, the operation == returns true. Because the numbers on both sides indicate the same value, 1 == 1 * 1 will return true.
Explanation: The == is a comparator/relational operator that is used to compare whether two things are equal or not.
Share a personalized message with your friends.