Ruby - Operators and Expressions
Which of the following is the correct way to write a NOT operation in Ruby?
! before a value to reverse its truth value.not x is valid but less common; ~x is bitwise NOT; x != true is a comparison, not logical NOT.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions