Ruby - Operators and Expressions
Which of the following is the correct syntax to check if variable
a is not equal to variable b in Ruby?a is not equal to variable b in Ruby?!= to check if two values are not equal.a != b is correct. a =! b is invalid syntax. a <> b is not Ruby syntax. a !== b is JavaScript syntax, not Ruby.a != b -> Option D15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions