+ 15

[Solved] [Ruby challenge] Why the out is -101?

I did not understood question and the output has complete blown 😳 my mind. Not able to figure out why output is -101? 🤔 Please help for better understanding! https://www.sololearn.com/post/805445/?ref=app

8th Dec 2020, 4:33 PM
Shivani 📚✍
Shivani 📚✍ - avatar
2 Antworten
+ 4
Thank you XXX for the link you shared! Sure, he helped understanding operators better. 👍
8th Dec 2020, 10:19 PM
Shivani 📚✍
Shivani 📚✍ - avatar
+ 1
The <=> operator is known as the spaceship operator. Just read the top answer to the mentioned question and you'll understand why https://stackoverflow.com/questions/827649/what-is-the-ruby-spaceship-operator
8th Dec 2020, 4:39 PM
XXX
XXX - avatar