A

Admin • 833K Points
Coach

Q. How do you define a constant in Ruby?

  • (A) Starting with uppercase letter
  • (B) Starting with lowercase letter
  • (C) Starting with underscore
  • (D) Starting with $ sign
  • Correct Answer - Option(A)
  • Views: 19
  • Filed under category Ruby
  • Hashtags:

Explanation by: Admin

Constants begin with an uppercase letter in Ruby.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.