Answer:
In Ruby, the only values that evaluate to false are false and nil. Everything else – even zero (0) and an empty array ([]) – evaluates to true.
This comes as a real surprise to programmers who have previously been working in other languages like JavaScript.
If you want to explore other questions about Ruby, you can check our videos section! Below we have some examples:
You can also subscribe to some channels that broadcast in Ruby, such as the following:
Another cool way to find out interesting things about Ruby is to access our project page!