Answers for "ruby equals == operator"

2

ruby equality operators

# Equality
1 == 1 #=> true
2 == 1 #=> false

# Inequality
1 != 1 #=> false
2 != 1 #=> true
!true  #=> false
!false #=> true
Posted by: Guest on January-07-2021

Browse Popular Code Answers by Language