Examveda

How do you check the truthiness of a value in Ruby?

A. if (value) then code end

B. if value do code end

C. if value != false

D. if value.is_truthy?

Answer: Option C


This Question Belongs to Ruby Programming >> Basic Syntax In Ruby

Join The Discussion

Related Questions on Basic Syntax in Ruby