Examveda

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

A. =~ checks for string pattern matching, == checks for equality

B. =~ checks for equality, == checks for string pattern matching

C. Both operators are the same

D. None of the above

Answer: Option A


This Question Belongs to Ruby Programming >> Basic Syntax In Ruby

Join The Discussion

Related Questions on Basic Syntax in Ruby