Examveda

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"

Answer: Option C


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

Join The Discussion

Related Questions on Basic Syntax in Ruby