what the difference is between false and nil in Ruby?
Answer / Chandra Dev Pankaj
False is a boolean value representing 'false' or 'falsy'. It means that the expression evaluates to false when used in a conditional statement. On the other hand, Nil is an object that represents the absence of any object value. It is used to represent an undefined or empty value.
| Is This Answer Correct ? | 0 Yes | 0 No |
How would you freeze an object in ruby?
Mention what is the command to create a migration?
How to read a file in Ruby?
What are the object-oriented programming features supported by ruby?
Explain the difference between a single quote and double quote?
difference between activesupport's “hashwithindifferentaccess” and ruby's “hash”?
How is object methods defined in ruby?
What is a struct in ruby?
What is the use of global variable $ in Ruby?
How ruby looks up a method to invoke?
Explain until loop in ruby.
What is rvm?