+13

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

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

10/6/2019 9:20:47 PM

Debbie

2 Answers

New Answer

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.

0

Let me clear,does "===" exists in Ruby? Caused in just checked Ruby course provided by Sololearn itself..