πŸ“Š Ruby
Q. 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?
πŸ’¬ Discuss
βœ… Correct Answer: (C) if value != false

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
120
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
97%
Success Rate