Q. What is the correct way to declare a variable in Ruby?

  • (A) var name = "value"
  • (B) let name = "value"
  • (C) name = "value"
  • (D) const name = "value"
πŸ’¬ Discuss
βœ… Correct Answer: (C) name = "value"

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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