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
A. if (value) then code end
B. if value do code end
C. if value != false
D. if value.is_truthy?
Answer: Option C
What does the 'puts' method do in Ruby?
A. Prints to console
B. Converts to string
C. Finds the length
D. Reads input from user
Join The Discussion