+ 16

What is the function of this comparison operator '===' in ruby?

(1......10) === 5

6th Oct 2019, 9:20 PM
Debbie
Debbie - avatar
2 ответов
0
Isn't it same than === in JavaScript? In JavaScript === compares 2 things: value equality and type equality. for example false === 0 would be false in JavaScript, where false == 0 would be true.
6th Oct 2019, 9:36 PM
Seb TheS
Seb TheS - avatar
0
Let me clear,does "===" exists in Ruby? Caused in just checked Ruby course provided by Sololearn itself..
7th Oct 2019, 6:43 AM
Nilavazhagan Ramakrishnan
Nilavazhagan Ramakrishnan - avatar