Ruby - Variables and Data Types
In Ruby, which of the following represents a value that means "nothing" or "no value"?
nilnil is used to represent the absence of any value, like an empty box.true and false are Boolean values meaning yes or no, but not "no value". 0 is a number, not a special value for nothing.nil -> Option Anil means no value [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions