0
== and ===
What is the difference between == and ===?
3 odpowiedzi
+ 4
Sigitas Januśauskas,
Sorry bro, I was wrong ...
It has different meaning in Ruby, I just found out about it after reading this ...
http://www.zenruby.info/2016/05/ruby-operators-equality-comparison.html
+ 3
In some other languages e.g. Javasript === means verify equality of operand types and values. Whereas == only verifies the equality of values. I guess it's the same with Ruby.
+ 2
Thanks