Comparison Operators
Learn about comparison operators and how we work our way around with them in Ruby.
In order to compare things, Ruby has a bunch of comparison operators.
Operator ==:
The operator == returns true if both objects can be considered the same. For
example 1 == 1 * 1 will return true, because the numbers on both sides
represent the same value. The expression "A" == "A" also returns true
because both strings have the ...
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy