Vidyalelo
Ruby Programming · Q26

Basic Syntax in Ruby

Programming · Ruby Programming · question 26

Q26

What is the difference between =~ and == operators?

A.
=~ checks for string pattern matching, == checks for equality
Answer
B.
=~ checks for equality, == checks for string pattern matching
C.
Both operators are the same
D.
None of the above

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board